Skip to content

Installation with Vagrant

Sam Joseph edited this page May 1, 2014 · 7 revisions
  1. install VirtualBox from https://www.virtualbox.org/wiki/Downloads
  2. install Vagrant from http://www.vagrantup.com/
  3. fork on github: https://github.com/AgileVentures/AutoGraderExamples
  4. install Git on your machine
  5. on Windows add "C:\Program Files (x86)\Git\bin" (or the correct path on your machine) to your Path environment variable
  6. ON YOUR HOST: clone your repo
  7. cd to the cloned directory
  8. edit that Vagrantfile if you want the vm to use other than 1024 Mb memory and 1 cpu
  9. vagrant box add hashicorp/precise32 => new-style image if you have new Vagrant.
  10. on older versions of Vagrant: vagrant box add precise32 and remove the same bit from Vagrantfile.
  11. vagrant up => launches and provisions vm if first run, will take > 10 mins
  12. vagrant ssh => command line access
  13. cd /LocalSupport
  14. bundle exec rake spec => run unit tests
  15. xvfb-run bundle exec rake cucumber => run feature tests (takes > 2 min)
  16. rails s
  17. open http://localhost:3003/ on host to see running app
  18. other vagrant commands are vagrant halt => stopping, and vagrant destroy => permanently delete VM