This is my fork of the excellent rails-dev-box. I required an environment to play with Sinatra, stole theirs, and have tweaked it to meet my needs. This is my own playground: Feel free to use it, but do so at your own risk.
Building the virtual machine is this easy:
host $ git clone https://github.com/jeremykendall/rails-dev-box.git host $ cd rails-dev-box host $ vagrant up
That's it.
After the installation has finished, you can access the virtual machine with
host $ vagrant ssh Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic-pae i686) ... vagrant@rails-dev-box:~$
-
Git
-
RVM
-
Ruby 2.0.0 (binary RVM install)
-
Sinatra
-
Shotgun
-
Thin
-
Bundler
-
SQLite3, MySQL, and Postgres
-
System dependencies for nokogiri, sqlite3, mysql, mysql2, and pg
-
Databases and users needed to run the Active Record test suite
-
Node.js for the asset pipeline
-
Memcached
When done just log out with ^D
and suspend the virtual machine
host $ vagrant suspend
then, resume to hack again
host $ vagrant resume
Run
host $ vagrant halt
to shutdown the virtual machine, and
host $ vagrant up
to boot it again.
You can find out the state of a virtual machine anytime by invoking
host $ vagrant status
Finally, to completely wipe the virtual machine from the disk destroying all its contents:
host $ vagrant destroy # DANGER: all is gone
Please check the Vagrant documentation for more information on Vagrant.