Skip to content

Latest commit

 

History

History
80 lines (57 loc) · 1.62 KB

README.md

File metadata and controls

80 lines (57 loc) · 1.62 KB

Set up my vagrant rails development box

Installation

mkdir -p $HOME/src && cd $HOME/src
git clone https://github.com/salimane/vagrant-rails-dev.git
cd vagrant-rails-dev/
bundle install
cd puppet && librarian-puppet install
vagrant up
vagrant provision
vagrant ssh

Installed components

  • zsh
  • nginx
  • sysctl configurations for lot of connections
  • rvm + ruby 2.1.5 + 'bundle' gem
  • mysql server
  • postgresql
  • redis
  • memcached
  • heroku toolbelt
  • weighttp

Hints

Provisioning

To provision again in case of update or errors while the virtual machine is already up, use:

vagrant provision

It just runs puppet to apply manifests without restarting the virtual machine.

Restart Virtual Machine

To restart the virtual machine, use:

vagrant halt && vagrant up

or

vagrant reload

Startup speed

To speed up the startup process after the first run, use:

vagrant up --no-provision

It just starts the virtual machine without provisioning of the puppet recipes.

Rebuild

If you messed up your box or for whatever reasons, you want to start fresh, destroy the box and build again, simply use:

vagrant destroy && vagrant up

It will delete the entire virtual machine and build it from scratch again.