ci: Ensure CORS_ORIGINS is set in server .env
All checks were successful
Deploy Dimension47 / deploy (push) Successful in 34s

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Alexander Zielonka
2026-01-21 09:27:08 +01:00
parent e4d44dadbf
commit 9c77370b70

View File

@@ -46,6 +46,11 @@ jobs:
cd /opt/dimension47/server cd /opt/dimension47/server
npm run build npm run build
- name: Ensure Server Env
run: |
cd /opt/dimension47/server
grep -q "CORS_ORIGINS" .env || echo 'CORS_ORIGINS=https://dimension47.de,http://localhost:5173' >> .env
- name: Restart Server - name: Restart Server
run: | run: |
pm2 delete dimension47 2>/dev/null || true pm2 delete dimension47 2>/dev/null || true