- Have a reasonably good Internet connection for the first run
- Download and install Vagrant
- Download and install VirtualBox
- Clone this repo:
git clone [email protected]:monkeychai/rails_workspace
cd rails_workspace
vagrant up
- Wait patiently while
vagrant
downloads the Ubuntu 14.04 image and provisions it. (This part takes a while (like 20mins) on my barely-broadband connection). List of things the bootstrap script does:- sets up .gemrc to not install docs
- rbenv, ruby-build, and their dependencies
- install rails and bundler
- install nodejs as a JS runtime
- install postgresql
- This machine uses nodejs as the JS env instead of rubyracer (Heroku claims this is better for performance).
- It's a good idea to replace webrick with thin, for better performance.
- Replace the postgresql password in the Vagrantfile with an actual ENV variable
- Use the
--skip-bundle
flag when you runrails new