I am starting to develop in Rails and I would like to know is how I can
develop on Rails in localhost? What I mean is using webrick but, the
thing I dont understand are 2 things so I can start that are the
following:
What is the directory for webrick and how I can set it up so its my
application directory
what is the URL on the browser to see my app? what I missing in
http:localhost:3000
Just one more question is it better to develop on local or on the
server, since I am following a course and the guy on the course uses
heroku to develop, can I use my VPS for it, it got Ruby on Rails
installed alread.
What is the directory for webrick and how I can set it up so its my
application directory
It’s automagically included in your new Rails app.
what is the URL on the browser to see my app? what I missing in
http:localhost:3000
Two slashes.
Just one more question is it better to develop on local or on the
server, since I am following a course and the guy on the course uses
heroku to develop, can I use my VPS for it, it got Ruby on Rails
installed alread.
Developing on your local machine is fine, in fact it’s pretty much
SOP. You can’t develop directly on Heroku (well, not easily
anyway), you develop somewhere else and push the code to Heroku.
I would recommend you use one of the common tutorials (the most common
seems to be http://railstutorial.org). Go through it from start to
finish. If you get stuck on something, Google relevant keywords, and
if you still can’t find an answer, ask here. In your Copious Spare
Time, also read the Rails Guides at http://guides.rubyonrails.com/ and
anything else you can get your hands on.