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
How is calling super() different from the super call?
How can you run rails without creating databases?
What does session and cookies represent in ruby on rails?
How is direct different from render?
what is the difference between the Observers and Callbacks in Ruby on Rails?
What is ORM in Rails?
What are float, dig and max?
What is the main function of helpers used in ruby on rails?
How many types of associations relationships does a model have?
what are some advantages of using ruby on rails?
Write the command to update rvm in rails.
who developed rails?
what is the difference between Active support’s “HashWithIndifferent” and Ruby’s “Hash” ?
how can you declare a block in Ruby?
what is the difference between Dynamic and Static Scaffolding?