unlisted directories, deleting data folder after build

This commit is contained in:
Firq 2023-03-16 22:38:58 +01:00
parent b170442e45
commit 28d155196e
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
3 changed files with 18 additions and 1 deletions

View file

@ -17,7 +17,7 @@ deploy-site:
script: script:
- echo "Connecting to proxmox machine" - echo "Connecting to proxmox machine"
- ssh $DEPLOY_USER@$DEPLOY_HOST -o StrictHostKeyChecking=no IdentitiesOnly=yes "screen -X -S website-firq-npx kill; rm -r -f public/*; cd build; git reset --hard; git pull; rm -r -f node_modules; npm install; npm run build; cp -R public ~; cp serve.json ~/public; cd ~; screen -S website-firq-npx -dm npx serve public/ -p 9000 -c serve.json" - ssh $DEPLOY_USER@$DEPLOY_HOST -o StrictHostKeyChecking=no IdentitiesOnly=yes "screen -X -S website-firq-npx kill; rm -r -f public/*; cd build; git reset --hard; git pull; rm -r -f node_modules; npm install; npm run build; rm -r public/assets/data/; cp -R public ~; cp serve.json ~/public; cd ~; screen -S website-firq-npx -dm npx serve public/ -p 9000 -c serve.json"
success_notification: success_notification:
stage: notification stage: notification

View file

@ -1,4 +1,5 @@
{ {
"directoryListing": ["/!assets/**"],
"headers": [ "headers": [
{ {
"source": "**/*.@(jpg|jpeg|gif|png|webp)", "source": "**/*.@(jpg|jpeg|gif|png|webp)",

16
src/pages/404.astro Normal file
View file

@ -0,0 +1,16 @@
---
import Layout from '../layouts/Layout.astro'
import BaseSection from '../layouts/baseSection.astro'
const description = "Error. This shouldn't happen :/"
---
<Layout
title="404 - Firq FGO Site"
currentpage="404"
descriptionOverride={description}
>
<BaseSection title=":(" />
</Layout>
<style></style>