add .env.example to frontend and php container and update README.md

This commit is contained in:
2026-01-29 20:09:16 +01:00
parent 7d2af43af4
commit 488fcd273b
7 changed files with 124 additions and 21 deletions
+11
View File
@@ -0,0 +1,11 @@
VITE_API_URL=
VITE_BROADCASTER=reverb
VITE_REVERB_KEY=local
VITE_REVERB_HOST=127.0.0.1
VITE_REVERB_PORT=8080
VITE_FORCE_TLS=false
VITE_DISABLE_STATS=true
VITE_ENCRYPTED=false
VITE_CLUSTER=mt1
VITE_ENABLED_TRANSPORTS=['ws', 'wss']
+4 -8
View File
@@ -27,17 +27,13 @@ fi
cd "$FRONTEND_DIR"
if [ -f package.json ]; then
npm ci --prefer-offline --no-audit
fi
cp /tmp/app.env .env
npm ci --prefer-offline --no-audit
npm run build
if [ ! -d "dist" ]; then
exit 1
fi
find "$PUBLIC_DIR" -mindepth 1 ! -name '.gitkeep' ! -name 'index.php' ! -name '.htaccess' -delete
find "$PUBLIC_DIR" -mindepth 1 ! -name 'index.php' ! -name '.htaccess' -delete
cp -r dist/* "$PUBLIC_DIR/"
exit 0