metamaps--metamaps/bin/configure.sh

18 lines
492 B
Bash
Raw Normal View History

# 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; gem install bundler";
vagrant ssh --command "cd /vagrant; bundle install";
# copy the db config
vagrant ssh --command "cd /vagrant; cp .example-env .env";
# Rake all the things
2016-02-05 10:12:00 +00:00
vagrant ssh --command "cd /vagrant; rake db:create; rake db:setup"