diff --git a/build/entrypoint.sh b/build/entrypoint.sh index 4c1f401..8dfa5b9 100755 --- a/build/entrypoint.sh +++ b/build/entrypoint.sh @@ -12,9 +12,15 @@ if [ -n "$WWWGROUP" ] && [ "$WWWGROUP" != "0" ]; then fi composer install --no-interaction +npm install mkdir -p storage/logs storage/framework/views storage/framework/cache storage/framework/sessions chown -R www-data:www-data storage bootstrap/cache chmod -R 775 storage bootstrap/cache + +if [ "$APP_ENV" = "production" ] || [ "$APP_ENV" = "prod" ]; then + npm run build +fi + php artisan migrate --force exec "$@"