We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a51962 commit 84d4a67Copy full SHA for 84d4a67
1 file changed
deploy-server
@@ -27,13 +27,9 @@ echo active is $active
27
echo target is $target
28
echo
29
30
-ssh $remote rm -rf $target
31
-ssh $remote cp -a $active $target
+ssh $remote "rm -rf $target && cp -a $active $target"
32
rsync -rpcv --fsync --chmod=D755,F644 --delete build/libs/ $remote:$target
33
-ssh $remote ln -snf $target $path/deploy
34
-ssh $remote sync $path/deploy
35
-ssh $remote systemctl daemon-reload
36
-ssh $remote systemctl restart attestation
+ssh $remote "ln -snf $target $path/deploy && sync $path/deploy && systemctl daemon-reload && systemctl restart attestation"
37
38
39
echo active is now $target
0 commit comments