Skip to content

Commit

Permalink
Now deploy_prod.sh pulls binary from GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
thoeni committed Sep 5, 2017
1 parent ee9b4dd commit 1764dcb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions deploy_prod.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/bin/bash
ssh ec2-user@services.thoeni.io 'rm slack-tube-service-linux-amd64 && wget $(wget -qO- https://api.github.com/repos/thoeni/slack-tube-service/releases/latest | grep -o "http.*linux-amd64") && sudo chmod +x slack-tube-service-linux-amd64'
ssh ec2-user@services.thoeni.io 'pkill -f slack-tube-service'
./mkbin.sh linux
scp dist/slack-tube-service-linux-amd64 ec2-user@services.thoeni.io:~/
ssh ec2-user@services.thoeni.io screen -d -m './slack-tube-service-linux-amd64 &'
ssh ec2-user@services.thoeni.io screen -d -m './slack-tube-service-linux-amd64 &'

0 comments on commit 1764dcb

Please sign in to comment.