metamaps--metamaps/configure.sh
Gord Tanner 5592c4710a Created a Vagrantfile
Install instructions:

- clone repo
- (ensure you have VirtualBox and Vagrant)
- run configure.sh

This will create a VM, install all the software. Once vm is provisioned
it will then bundle install and configure your database

To start the service you can then run:

vagrant ssh -c 'cd /vagrant; rails s'
2015-01-22 17:53:18 -05:00

17 lines
493 B
Bash
Executable file

# Make sure we've got NFS handy.
if [ $(uname) == 'Linux' ] && [ ! -e /etc/init.d/nfs-kernel-server ]; then
sudo apt-get install -y nfs-common nfs-kernel-server rpcbind
fi
# Vagrant up
vagrant up
# Bundle!
vagrant ssh --command "cd /vagrant; bundle install";
# copy the db config
vagrant ssh --command "cd /vagrant; cp config/database.yml.default config/database.yml";
# Rake all the things
vagrant ssh --command "cd /vagrant; rake db:create; rake db:schema:load; rake db:fixtures:load"