add .env.example to frontend and php container and update README.md
This commit is contained in:
@@ -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']
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user