Skip to content

Instantly share code, notes, and snippets.

@thehenster
Created December 15, 2013 22:26
Show Gist options
  • Save thehenster/7979149 to your computer and use it in GitHub Desktop.
Save thehenster/7979149 to your computer and use it in GitHub Desktop.
Crapistrano
project_path='~/apps/'$app'/current'
frontend_path=$project_path$subdir
cmd=''
cmd+='. ~/.bash_profile;'
cmd+='cd '$project_path';'
cmd+='git pull;'
cmd+='kill `cat '$frontend_path'/tmp/pids/unicorn.pid`;'
sleep 5
cmd+='unicorn_rails -c '$frontend_path'/config/unicorn.rb -E development -D;'
ssh $sshuser@$host $cmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment