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 does session and cookies represent in ruby on rails?
Why ruby on rails is used for?
How is calling super() different from the super call?
what are some advantages of using ruby on rails?
how you define Instance Variable, Global Variable and Class Variable in Ruby?
What are rails validation used for?
Explain how you can run rails application without creating databases?
what is Ruby on Rails?
What are the different filters used in ruby on rails?
What is the use of super in Ruby Rails?
What are class libraries?
What is the role of mvc architecture in ruby on rails?
What are naming conventions?
what are helpers and how to use helpers in ror?
what are rails filters?