chore: update justfile

This commit is contained in:
2023-06-26 08:51:16 +02:00
parent 7793f6a5dc
commit 5b2d9aa5a5
2 changed files with 3 additions and 1 deletions

View File

@@ -43,8 +43,9 @@ deploy-frontend:
deploy-backend:
ssh plul@ajb.dk -- sh -c "'cd achievements && git pull'"
ssh plul@ajb.dk -- sh -c "'cd achievements && nix develop --command -- cargo build --release -p backend'"
ssh root@ajb.dk -- systemctl stop achievements-backend.service
ssh plul@ajb.dk -- sh -c "'cp achievements/target/release/backend /opt/achievements/backend'"
ssh root@ajb.dk -- systemctl restart achievements-backend.service
ssh root@ajb.dk -- systemctl start achievements-backend.service
just logs-prod
# Copy the nginx conf to the server and reload nginx