Skip to content

Commit

Permalink
Make deploy.sh more portable
Browse files Browse the repository at this point in the history
  • Loading branch information
ryukinix committed Jul 23, 2020
1 parent b75b7fb commit 7aad9ec
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/bash
set -eux
server=lisp@bikelis
go build
ssh bikelis 'pkill troll-shield || true'
scp troll-shield bikelis:
git describe --tags | ssh bikelis 'cat > version.txt'
ssh bikelis 'tmux new-session -d -s troll'
ssh $server 'pkill troll-shield || true'
scp troll-shield $server:
git describe --tags | ssh $server 'cat > version.txt'
ssh bikelis 'tmux new-session -d -s troll || true'
ssh bikelis 'tmux new-window -d ./run.sh'

0 comments on commit 7aad9ec

Please sign in to comment.