2015-01-22 22:53:18 +00:00
|
|
|
# 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!
|
2015-05-10 03:22:23 +00:00
|
|
|
vagrant ssh --command "cd /vagrant; gem install bundler";
|
2015-01-22 22:53:18 +00:00
|
|
|
vagrant ssh --command "cd /vagrant; bundle install";
|
|
|
|
|
|
|
|
# copy the db config
|
2016-01-06 14:36:29 +00:00
|
|
|
vagrant ssh --command "cd /vagrant; cp .example-env .env";
|
2015-01-22 22:53:18 +00:00
|
|
|
|
|
|
|
# Rake all the things
|
2016-02-05 10:12:00 +00:00
|
|
|
vagrant ssh --command "cd /vagrant; rake db:create; rake db:setup"
|