Modified to fit k8s

This commit is contained in:
Lee Ween Jiann
2021-03-23 19:47:11 +08:00
parent f175fa4fb0
commit c0350de418
4 changed files with 15 additions and 15 deletions

View File

@@ -82,9 +82,6 @@ elif [ -d "$BAK_PUBLIC_PATH/logo" ]; then
fi
rm -rf "$BAK_PUBLIC_PATH"
# Set permission for web server to create/update files
chown -R "$INVOICENINJA_USER":www-data /var/www/app/storage /var/www/app/public /var/www/app/bootstrap
# Initialize values that might be stored in a file
file_env 'APP_KEY'
file_env 'API_SECRET'
@@ -104,6 +101,11 @@ file_env 'S3_SECRET'
# Run Laravel stuff
php artisan config:cache
php artisan optimize
while ! mysqladmin ping -h "$DB_HOST1" -P $DB_PORT1 --silent; do
echo "Waiting for DB ($DB_HOST1:$DB_PORT1)"
sleep 1
done
php artisan migrate --force
exec docker-php-entrypoint "$@"