ci: Ensure CORS_ORIGINS is set in server .env
All checks were successful
Deploy Dimension47 / deploy (push) Successful in 34s
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:
@@ -46,6 +46,11 @@ jobs:
|
||||
cd /opt/dimension47/server
|
||||
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
|
||||
run: |
|
||||
pm2 delete dimension47 2>/dev/null || true
|
||||
|
||||
Reference in New Issue
Block a user