#!/bin/bash
ssh admin@tastystakes.com 'mysqldump -u <%= appName %> -psecret <%= appName %> > /htdocs/<%= installDir %>/dump.sql && cd /htdocs/<%= installDir %> && git add dump.sql && git commit -m "production db" && git push origin master'
cd ..
git pull
mysql -u homestead -psecret <%= appName %> < /home/vagrant/sites/<%= installDir %>/dump.sql && echo "Restoring MySQL Developmental Database from dump.sql..."
