-
-
Save oestrich/52ac2afa26f48e927d0078d885afc01b 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
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