Restart the server on deploy
This commit is contained in:
parent
6980ff5f9f
commit
575f7d45b9
4
.github/workflows/deploy.yml
vendored
4
.github/workflows/deploy.yml
vendored
@ -60,3 +60,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Deploy backend with rsync
|
- name: Deploy backend with rsync
|
||||||
run: rsync -avz ./target/release/crawlnicle ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/home/crawlnicle/crawlnicle/target/release/crawlnicle
|
run: rsync -avz ./target/release/crawlnicle ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/home/crawlnicle/crawlnicle/target/release/crawlnicle
|
||||||
|
|
||||||
|
# TODO: fancy blue/green deployments
|
||||||
|
- name: Restart the server
|
||||||
|
run: ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} 'sudo /usr/bin/systemctl restart crawlnicle.service'
|
||||||
|
Loading…
Reference in New Issue
Block a user