From 5cb2a9adc31f6f39f159e972b5dc2f748151512c Mon Sep 17 00:00:00 2001 From: karim hamidou Date: Thu, 20 Feb 2014 19:18:39 +0100 Subject: [PATCH] better readme --- README.markdown | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/README.markdown b/README.markdown index 77d5fce..b31fb00 100644 --- a/README.markdown +++ b/README.markdown @@ -2,18 +2,22 @@ Vagrant-rails sets up a virtual machine for rails development, with ruby 2.0 and ### Quickstart -Install [vagrant](http://www.vagrantup.com/) -Clone this repo. -In the cloned directory, run: - - vagrant up # initialize the machine - vagrant ssh # connect as user vagrant - rbenv shell 2.0.0-p247 # select ruby v 2.0.0-p247 - cd /vagrant # /vagrant is a special directory which mirrors the directory you started the vm in - rails new blog # start coding. - cd blog - rails s # connect to http://192.168.50.4:3000 to see the rails welcome page. +1. Install [vagrant](http://www.vagrantup.com/). +2. Clone this repo. + +3. Cd to the cloned directory and run `vagrant up` to initialize the vm and setup rails + +4. Open a shell on the VM with `vagrant ssh` + +5. Run `rbenv shell 2.0.0-p247` to select the correct ruby version + +6. cd to the `/vagrant/` directory. It's a special directory mirroring the directory where your vm is stored. + +7. run `rails new blog` to create a basic app + +8. cd in your blog directory and run `rails s` to launch the rails server. Browsing to http://192.168.50.4:3000 should show you the rails welcome page. + ### Why vagrant\_rails ? It's pretty complicated for a beginner to get started with rails, particularly if you're learning git and unix at the same time. vagrant-rails tries to remove the pain of setting up a base dev environment. -- 2.43.0