feat(docker): update Docker configuration for Arvan Cloud registry and add API documentation generation
This commit is contained in:
@@ -7,6 +7,7 @@ mkdir -p \
|
||||
storage/framework/sessions \
|
||||
storage/framework/views \
|
||||
storage/logs \
|
||||
storage/api-docs \
|
||||
bootstrap/cache
|
||||
|
||||
if [ ! -L public/storage ]; then
|
||||
@@ -25,6 +26,10 @@ if [ -z "${APP_KEY:-}" ]; then
|
||||
fi
|
||||
|
||||
if [ "${APP_ENV:-production}" = "production" ]; then
|
||||
if php artisan list --raw 2>/dev/null | grep -q '^l5-swagger:generate'; then
|
||||
php artisan l5-swagger:generate --no-interaction
|
||||
fi
|
||||
|
||||
php artisan config:cache --no-interaction
|
||||
php artisan event:cache --no-interaction
|
||||
php artisan view:cache --no-interaction
|
||||
|
||||
Reference in New Issue
Block a user