Testing maint model
This commit is contained in:
parent
1c571bd4f9
commit
3de7bd86b0
1 changed files with 4 additions and 2 deletions
|
@ -43,10 +43,12 @@ deploy-site:
|
||||||
script:
|
script:
|
||||||
- echo "Getting artifacts"
|
- echo "Getting artifacts"
|
||||||
- ls public
|
- ls public
|
||||||
- echo "Stopping screen session and cleaning"
|
- echo "Stopping screen session, enabling maintenance mode, cleaning"
|
||||||
- ssh $DEPLOY_USER@$DEPLOY_HOST "screen -X -S website-firq-npx kill; rm -r -f public/*;"
|
- ssh $DEPLOY_USER@$DEPLOY_HOST "screen -X -S website-firq-npx kill; rm -r -f public/*; screen -S maintenance -dm npx serve maintenance/ -p 9000 -c serve.json"
|
||||||
- echo "Copying to proxmox machine"
|
- echo "Copying to proxmox machine"
|
||||||
- rsync -az --stats public $DEPLOY_USER@$DEPLOY_HOST:~/.
|
- rsync -az --stats public $DEPLOY_USER@$DEPLOY_HOST:~/.
|
||||||
|
- echo "Ending maintenance mode"
|
||||||
|
- ssh $DEPLOY_USER@$DEPLOY_HOST "screen -X -S maintenance kill;"
|
||||||
- echo "Restarting screen session"
|
- echo "Restarting screen session"
|
||||||
- ssh $DEPLOY_USER@$DEPLOY_HOST "screen -S website-firq-npx -dm npx serve public/ -p 9000 -c serve.json"
|
- ssh $DEPLOY_USER@$DEPLOY_HOST "screen -S website-firq-npx -dm npx serve public/ -p 9000 -c serve.json"
|
||||||
- echo "Website is up on https://firq.dev/"
|
- echo "Website is up on https://firq.dev/"
|
||||||
|
|
Loading…
Reference in a new issue