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
+6 -9
View File
@@ -18,19 +18,16 @@ if [ -f composer.json ]; then
composer update --no-interaction --prefer-dist --optimize-autoloader
fi
if [ ! -f .env ] && [ -f .env.example ]; then
cp .env.example .env
fi
cp /tmp/app.env .env
if [ -f artisan ]; then
if ! grep -q "APP_KEY=base64:" .env 2>/dev/null; then
php artisan key:generate --ansi --force
fi
fi
php artisan key:generate --force
php artisan config:clear
php artisan cache:clear
php artisan migrate --force
chown -R www-data:www-data storage bootstrap/cache public
chown -R www-data:www-data public/ storage bootstrap/cache public vendor
chmod -R 775 storage bootstrap/cache
chmod -R 755 public