#!/bin/bash
mysqldump -u homestead -psecret <%= appName %> > /home/vagrant/sites/<%= installDir %>/dump.sql
cd ..
git add -A
git commit -m "development push"
git push origin master
ssh admin@tastystakes.com 'cd /htdocs/<%= installDir %> && git stash save --keep-index ; git stash drop ; git pull && mysql -u <%= appName %> -psecret <%= appName %> < /htdocs/<%= installDir %>/dump.sql && rm -rf craft/storage/runtime/'
echo "Pushed files & db to production..."
