Created
June 17, 2009 20:42
-
-
Save boffbowsh/131492 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
name=$1 | |
if [ -z "$name" ] ; then | |
echo "need to give name of checkout dir on command line" | |
exit 1 | |
fi | |
dir="~/rails_apps/$name" | |
if [ ! -d $dir ] ; then | |
echo "the directory $dir does not exist" | |
exit 1 | |
fi | |
cd $dir | |
env -i git pull | |
rake db:migrate RAILS_ENV=production | |
touch $dir/tmp/restart.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sh ../../rails_apps/deploy-on-push.sh blog |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment