diff --git a/docker/8.5/supervisord.conf b/docker/8.5/supervisord.conf index 61faa9b..6e00d0f 100644 --- a/docker/8.5/supervisord.conf +++ b/docker/8.5/supervisord.conf @@ -14,7 +14,7 @@ stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 [program:npm] -command=/usr/bin/npm run dev +command=/bin/sh -c "if [ \"${APP_ENV}\" = \"local\" ] || [ \"${APP_ENV}\" = \"testing\" ]; then exec /usr/bin/npm run dev; else sleep infinity; fi" user=%(ENV_SUPERVISOR_PHP_USER)s environment=LARAVEL_SAIL="1" stdout_logfile=/dev/stdout