fix(docker): 僅在 local/testing 環境執行 npm run dev,避免正式環境啟動
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user