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 can the filter methods in ruby on rails be protected?
How you run your Rails Application without creating database ?
how can you declare a block in Ruby?
How are blocks created?
What are class libraries?
How do rails implement ajax?
Can you explain me how rails implements ajax?
What role does garbage collection play?
Do you know what is cross-site request forgery (csrf) and how rails is protected against it?
How are string and symbol different?
How to find second max element from database ?
What is agile development? What are the strengths?
What is rails active record?
Explain the role of sub directory app/controllers and app/helpers.
what is the difference between Dynamic and Static Scaffolding?