moving dirs

This commit is contained in:
Firq 2023-07-27 22:45:10 +02:00
parent 93ad10a1d5
commit 26b732f29e
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20

View file

@ -59,11 +59,11 @@ deploy-site:
- echo "Getting artifacts"
- ls public
- echo "Stopping screen session, cleaning"
- ssh $DEPLOY_USER@$DEPLOY_HOST "screen -X -S website-fgota-npx kill; rm -r -f fgota-public/*;"
- ssh $DEPLOY_USER@$DEPLOY_HOST "screen -X -S website-fgota-npx kill; rm -r -f fgo-ta_com/fgota-public/*;"
- echo "Copying to proxmox machine"
- rsync -az --stats public/* $DEPLOY_USER@$DEPLOY_HOST:~/fgota-public
- rsync -az --stats public/* $DEPLOY_USER@$DEPLOY_HOST:~/fgo-ta_com/fgota-public
- echo "Restarting screen session"
- ssh $DEPLOY_USER@$DEPLOY_HOST "find fgota-public -maxdepth 1 -printf '%p\n'; screen -S website-fgota-npx -dm npx serve fgota-public/ -p 9200 -c serve.json"
- ssh $DEPLOY_USER@$DEPLOY_HOST "cd fgo-ta_com; find fgota-public -maxdepth 1 -printf '%p\n'; screen -S website-fgota-npx -dm npx serve fgota-public/ -p 9200 -c serve.json"
- echo "Website is up on https://fgo-ta.com"
@ -80,5 +80,5 @@ redeploy-site:
- echo "Stopping screen session"
- ssh $DEPLOY_USER@$DEPLOY_HOST "screen -X -S website-fgota-npx kill" || true
- echo "Restarting screen session"
- ssh $DEPLOY_USER@$DEPLOY_HOST "screen -S website-fgota-npx -dm npx serve fgota-public/ -p 9200 -c serve.json"
- ssh $DEPLOY_USER@$DEPLOY_HOST "cd fgo-ta_com; screen -S website-fgota-npx -dm npx serve fgota-public/ -p 9200 -c serve.json"
- echo "Website is up on https://fgo-ta.com/"