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


Please Help Members By Posting Answers For Below Questions

What are float, dig and max?

633


what is the difference between destroy and delete?

507


what is the defined operator?

605


What is rails migrations?

479


What is the process for creating a controller for the subject? What is its role?

439






Do you know the role of garbage collection in ruby on rails?

452


What is the difference between save and save?

511


What is the difference between concern and application_controller.rb in ruby on rails?

455


Explain the features of ruby on rails.

449


Explain me what are the limits of ruby on rails?

444


What is difference between form_for and form_tag?

475


how you define Instance Variable, Global Variable and Class Variable in Ruby?

483


what is different between activerecord::relation's count, length and size methods?

497


What are the types of caching used in rails, what are they?

437


What is action cable?

504