Restart the server on deploy

This commit is contained in:
Tyler Hallada 2023-10-24 22:42:39 -04:00
parent 6980ff5f9f
commit 575f7d45b9

View File

@ -60,3 +60,7 @@ jobs:
- name: Deploy backend with rsync
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'