Skip to content

Instantly share code, notes, and snippets.

@iambibhas
Created June 23, 2013 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iambibhas/5845932 to your computer and use it in GitHub Desktop.
Save iambibhas/5845932 to your computer and use it in GitHub Desktop.
One-liner git based deployment command
echo "cd /mnt/project_name_beta/;git pull origin dev;sudo supervisorctl restart project_name" | ssh -i ~/Works/keys/project_name.pem ubuntu@xxx.xxx.xxx.xxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment