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