9bd22dfcb7
- Gzf-Picker-Modal mit AMEV-Tabelle 3 (Planungshilfe für elektrische Leistungsbilanzen) im Projektgerät-Modal und im globalen Geräteformular - Docker-Deploy-Tooling (docker-start.sh, run-migrations.js) für den produktiven Container - Seitenleiste ist jetzt einklappbar (Icon-only, Zustand in localStorage)
17 lines
426 B
Bash
17 lines
426 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
echo "Running migrations..."
|
|
node scripts/run-migrations.js
|
|
|
|
echo "Starting API server on :3000..."
|
|
node dist/server/index.js &
|
|
|
|
echo "Waiting for API..."
|
|
until node -e "require('http').get('http://localhost:3000/health', r => process.exit(r.statusCode===200?0:1)).on('error',()=>process.exit(1))" 2>/dev/null; do
|
|
sleep 1
|
|
done
|
|
|
|
echo "Starting Next.js on :3001..."
|
|
exec node_modules/.bin/next start -p 3001
|