Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

enhance debug mode script to clear optimized classes after installing development dependencies

Andras Bacsaif9d509bc4cd2
diff --git a/docker/production/entrypoint.d/99-debug-mode.sh b/docker/production/entrypoint.d/99-debug-mode.sh
index b2900808d5..e0a1813735 100644
--- a/docker/production/entrypoint.d/99-debug-mode.sh
+++ b/docker/production/entrypoint.d/99-debug-mode.sh
@@ -3,4 +3,6 @@ if [ "$APP_DEBUG" = "true" ]; then
echo "Debug mode is enabled"
echo "Installing development dependencies..."
composer install --dev --no-scripts
+ echo "Clearing optimized classes..."
+ php artisan optimize:clear
fi