Skip to content

Instantly share code, notes, and snippets.

@oestrich
Created November 19, 2019 16:31
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 oestrich/52ac2afa26f48e927d0078d885afc01b to your computer and use it in GitHub Desktop.
Save oestrich/52ac2afa26f48e927d0078d885afc01b to your computer and use it in GitHub Desktop.
set -e │···············································
│···············································
host=... │···············································
│···············································
scp tmp/app.tar.gz deploy@${host}: │···············································
│···············································
ssh deploy@${host} 'sudo systemctl stop app' │···············································
ssh deploy@${host} 'tar xzf app.tar.gz -C app' │···············································
ssh deploy@${host} './app/bin/app eval "App.ReleaseTasks.migrate()"' │···············································
ssh deploy@${host} 'sudo systemctl start app' │···············································
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment