Last active
September 6, 2016 15:24
-
-
Save yuuki/5e3f1ed205f29cb159c1069ac433dda5 to your computer and use it in GitHub Desktop.
ISUCON deploy.sh
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/bash | |
set -ex | |
IPADDR=$1 | |
USERNAME=$USER | |
ssh isucon@$IPADDR "/home/isucon/notify.sh $USERNAME 'deploying...' && cd /home/isucon/deploy && git pull && ~/.local/perl/bin/carton install && sudo systemctl restart mysql && sudo service memcached restart && sudo systemctl restart isuxi.perl && sudo systemctl restart nginx && sudo sysctl -p && /home/isucon/notify.sh $USERNAME 'deploy done'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment