am new to ruby. tell me one thing.
i can view my project on browser when i write "ruby
script/server". otherwise i cant view my project on localhost.
what i have to do to view my project always on browser?
pls help
Answer Posted / manish nautiyal
ruby script/server -d
with -d your server will run always. This is for only your localhost machine. When you deploy your project on live server than you have to use apache to run it.
And to see it in the browser you have to type
http://localhost:3000/
3000 port is by default port for ruby on rails you can change the port by using -p
ruby script/server -d -p 3001
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
what is “Yield” in Ruby on Rails?
Do you know what is “yield” in ruby on rails?
Explain me what is the purpose of rjs in rails?
What do you understand by rails?
difference between member routes and collection routes ?
Difference between argument and parameter in ruby on rails ?
what is rails caching?
Tell me what is ruby on rails?
What is rails scaffolding?
Where does the start_tabnav gets informations for tabs rendering in ruby rail?
What is difference between form_for and form_tag?
Explain rest in rails routes.
how you can list all routes for an application?
What do you mean by render and redirect_to?
Tell me what is rails migration?