From 8cf35dbb7544db645a7b38651a07b7f55eb88738 Mon Sep 17 00:00:00 2001 From: karim hamidou Date: Thu, 20 Feb 2014 19:10:09 +0100 Subject: [PATCH] better readme --- README.markdown | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/README.markdown b/README.markdown index 138c41f..77d5fce 100644 --- a/README.markdown +++ b/README.markdown @@ -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. -- 2.43.0