Skip to content

Commit 7aad9ec

Browse files
committed
Make deploy.sh more portable
1 parent b75b7fb commit 7aad9ec

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

deploy.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/bin/bash
22
set -eux
3+
server=lisp@bikelis
34
go build
4-
ssh bikelis 'pkill troll-shield || true'
5-
scp troll-shield bikelis:
6-
git describe --tags | ssh bikelis 'cat > version.txt'
7-
ssh bikelis 'tmux new-session -d -s troll'
5+
ssh $server 'pkill troll-shield || true'
6+
scp troll-shield $server:
7+
git describe --tags | ssh $server 'cat > version.txt'
8+
ssh bikelis 'tmux new-session -d -s troll || true'
89
ssh bikelis 'tmux new-window -d ./run.sh'

0 commit comments

Comments
 (0)