]> khamidou — GitHub mirrors - vagrant-rails.git/commitdiff
better readme
authorkarim hamidou <khamidou@gmail.com>
Thu, 20 Feb 2014 18:10:09 +0000 (19:10 +0100)
committerkarim hamidou <khamidou@gmail.com>
Thu, 20 Feb 2014 18:10:09 +0000 (19:10 +0100)
README.markdown

index 138c41f01c237df1c575c74699f7b5f310059bbe..77d5fce48e5f0968eb991bf1b75c5853bdfa6323 100644 (file)
@@ -1,6 +1,19 @@
-Vagrant-rails sets up a vagrant box for rails development, with ruby 2.0 and the latest stable rails.
+Vagrant-rails sets up a virtual machine for rails development, with ruby 2.0 and the latest stable rails.
 
-Usage
-=====
+### Quickstart
 
-Clone this repo. Run `vagrant up` to initialize the virtual machine. Start coding in `/vagrant`.
+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.
+
+### 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.