moving dirs

This commit is contained in:
Firq 2023-07-27 22:52:35 +02:00
parent 531cb89fac
commit 60d08dbd81
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
2 changed files with 26 additions and 20 deletions

View file

@ -61,11 +61,11 @@ deploy-site:
- echo "Getting artifacts" - echo "Getting artifacts"
- ls public - ls public
- echo "Stopping screen session, cleaning" - echo "Stopping screen session, 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 firq_dev/public/*;"
- 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:~/firq_dev/public
- echo "Restarting screen session" - echo "Restarting screen session"
- ssh $DEPLOY_USER@$DEPLOY_HOST "find maintenance public -maxdepth 1 -printf '%p\n'; screen -S website-firq-npx -dm npx serve public/ -p 9000 -c serve.json" - ssh $DEPLOY_USER@$DEPLOY_HOST "cd firq_dev; find maintenance public -maxdepth 1 -printf '%p\n'; 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/"
deploy-testing: deploy-testing:
@ -80,11 +80,11 @@ deploy-testing:
- echo "Getting artifacts" - echo "Getting artifacts"
- ls public - ls public
- echo "Stopping screen session, cleaning" - echo "Stopping screen session, cleaning"
- ssh $DEPLOY_USER@$DEPLOY_HOST "screen -X -S staging-firq-npx kill; rm -r -f staging/*;" - ssh $DEPLOY_USER@$DEPLOY_HOST "screen -X -S staging-firq-npx kill; rm -r -f firq_dev/staging/*;"
- echo "Copying to proxmox machine" - echo "Copying to proxmox machine"
- rsync -az --stats public/* $DEPLOY_USER@$DEPLOY_HOST:~/staging - rsync -az --stats public/* $DEPLOY_USER@$DEPLOY_HOST:~/firq_dev/staging
- echo "Restarting screen session" - echo "Restarting screen session"
- ssh $DEPLOY_USER@$DEPLOY_HOST "find staging -maxdepth 1 -printf '%p\n'; screen -S staging-firq-npx -dm npx serve staging/ -p 9100 -c serve.json" - ssh $DEPLOY_USER@$DEPLOY_HOST "cd firq_dev; find staging -maxdepth 1 -printf '%p\n'; screen -S staging-firq-npx -dm npx serve staging/ -p 9100 -c serve.json"
- echo "Staging environment is up!" - echo "Staging environment is up!"
unlighthouse: unlighthouse:
@ -119,11 +119,11 @@ unlighthouse-publish:
- echo "Getting artifacts" - echo "Getting artifacts"
- ls unlighthouse-reports - ls unlighthouse-reports
- echo "Stopping screen session, cleaning" - echo "Stopping screen session, cleaning"
- ssh $DEPLOY_USER@$DEPLOY_HOST "screen -X -S unlighthouse-results kill; rm -r -f unlighthouse/*;" - ssh $DEPLOY_USER@$DEPLOY_HOST "screen -X -S unlighthouse-results kill; rm -r -f firq_dev/unlighthouse/*;"
- echo "Copying to proxmox machine" - echo "Copying to proxmox machine"
- rsync -az --stats unlighthouse-reports/* $DEPLOY_USER@$DEPLOY_HOST:~/unlighthouse - rsync -az --stats unlighthouse-reports/* $DEPLOY_USER@$DEPLOY_HOST:~/firq_dev/unlighthouse
- echo "Restarting screen session" - echo "Restarting screen session"
- ssh $DEPLOY_USER@$DEPLOY_HOST "find unlighthouse -maxdepth 1 -printf '%p\n'; screen -S unlighthouse -dm npx serve unlighthouse/ -p 9101 -c serve.json" - ssh $DEPLOY_USER@$DEPLOY_HOST "cd firq_dev; find unlighthouse -maxdepth 1 -printf '%p\n'; screen -S unlighthouse -dm npx serve unlighthouse/ -p 9101 -c serve.json"
- echo "Unlighthouse results are up!" - echo "Unlighthouse results are up!"
success_notification: success_notification:
@ -181,7 +181,7 @@ redeploy-site:
- echo "Stopping screen session" - echo "Stopping screen session"
- ssh $DEPLOY_USER@$DEPLOY_HOST "screen -X -S website-firq-npx kill" || true - ssh $DEPLOY_USER@$DEPLOY_HOST "screen -X -S website-firq-npx kill" || true
- 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 firq_dev/public/ -p 9000 -c serve.json"
- echo "Website is up on https://firq.dev/" - echo "Website is up on https://firq.dev/"
redeploy-staging: redeploy-staging:
@ -196,7 +196,7 @@ redeploy-staging:
- echo "Stopping screen session" - echo "Stopping screen session"
- ssh $DEPLOY_USER@$DEPLOY_HOST "screen -X -S staging-firq-npx kill" || true - ssh $DEPLOY_USER@$DEPLOY_HOST "screen -X -S staging-firq-npx kill" || true
- echo "Restarting screen session" - echo "Restarting screen session"
- ssh $DEPLOY_USER@$DEPLOY_HOST "screen -S staging-firq-npx -dm npx serve staging/ -p 9100 -c serve.json" - ssh $DEPLOY_USER@$DEPLOY_HOST "screen -S staging-firq-npx -dm npx serve firq_dev/staging/ -p 9100 -c serve.json"
- echo "Staging environment is up!" - echo "Staging environment is up!"
redeploy-unlighthouse: redeploy-unlighthouse:
@ -211,7 +211,7 @@ redeploy-unlighthouse:
- echo "Stopping screen session" - echo "Stopping screen session"
- ssh $DEPLOY_USER@$DEPLOY_HOST "screen -X -S unlighthouse-results kill" || true - ssh $DEPLOY_USER@$DEPLOY_HOST "screen -X -S unlighthouse-results kill" || true
- echo "Restarting screen session" - echo "Restarting screen session"
- ssh $DEPLOY_USER@$DEPLOY_HOST "screen -S unlighthouse-results -dm npx serve unlighthouse/ -p 9101 -c serve.json" - ssh $DEPLOY_USER@$DEPLOY_HOST "screen -S unlighthouse-results -dm npx serve firq_dev/unlighthouse/ -p 9101 -c serve.json"
- echo "Staging environment is up!" - echo "Staging environment is up!"
maintenance-deploy: maintenance-deploy:

View file

@ -1,14 +1,20 @@
{ {
"directoryListing": ["/!assets/**"], "cleanUrls": true,
"headers": [ "directoryListing": false,
{ "etag": true,
"source": "**/*.@(jpg|jpeg|gif|png|webp)",
"headers": [ "headers": [
{ {
"source" : "**/*.@(jpg|jpeg|gif|png|webp|svg)",
"headers" : [{
"key" : "Cache-Control", "key" : "Cache-Control",
"value" : "no-cache" "value" : "no-cache"
} }]
] }, {
"source" : "404.html",
"headers" : [{
"key" : "Cache-Control",
"value" : "no-cache"
}]
} }
] ]
} }