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