##Vagrant Quick Start A quick setup for rails apps using Vagrant & Puppet for rails projects. Vagrantup.sh will download a base Vagrantfile as well as a puppet directory. It will also setup your development and production database.yml file as well as other tedious setup steps.
##Required
-
Get and install VirtualBox: https://www.virtualbox.org/wiki/Downloads
-
Install Vagrant:
gem install vagrant
-
Install vagrant-vbguest to stop Vagrant complaining about guest addition version:
gem install vagrant-vbguest
##To Use
-
cd to rails app directory
-
Place vagrantup.sh in the root of the directory.
-
In terminal enter
chmod a+x vagrantup.sh
-
./vagrantup.sh
This will grab a Vagrantfile & Puppet from s3 and get you rolling.
Vagrantup.sh will ask you about your Application and Database and will dynamically create your puppet file, databases, users and get everything ready for Development and Production Environments.
##Running Vagrant After you have run vagrantup.sh you're free to:
vagrant up
vagrant ssh
bundle install
rbenv rehash
rails s