How can I develop on localhost

Hello,

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:

  1. What is the directory for webrick and how I can set it up so its my
    application directory

  2. 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.

Cheers!!

I suggest you start from the getting started guide on
http://guides.rubyonrails.com which will hopefully answer most of your
questions.

Sent from my iPhone

On Wed, Jun 6, 2012 at 3:08 PM, Code M. [email protected] wrote:

  1. 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.

  1. 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.

-Dave


Dave A., Cleared/Remote Ruby on Rails Freelancer
(NoVa/DC/Remote); see www.DaveAronson.com, and blogs at
www.Codosaur.us, www.Dare2XL.com, www.RecruitingRants.com

  1. What is the directory for webrick and how I can set it up so its my
    application directory

Try in your application directory:

$ rails server

And then visit the web page:

  1. what is the URL on the browser to see my app? what I missing in
    http:localhost:3000

http://localhost:3000


Best Regards.

Richard Ma

My Blog: www.richardma.org