Spaces:
Sleeping
Sleeping
Commit ·
8fdfd9f
1
Parent(s): a9e148f
fix: remove %(ENV_...)s from supervisord — inherit env from start.sh instead
Browse files- hf/supervisord.conf +4 -2
hf/supervisord.conf
CHANGED
|
@@ -16,8 +16,10 @@ startsecs=5
|
|
| 16 |
stdout_logfile=/var/log/supervisor/fastapi.log
|
| 17 |
stderr_logfile=/var/log/supervisor/fastapi.log
|
| 18 |
stdout_logfile_maxbytes=5MB
|
| 19 |
-
;
|
| 20 |
-
environment
|
|
|
|
|
|
|
| 21 |
|
| 22 |
[program:nextjs]
|
| 23 |
command=node server.js
|
|
|
|
| 16 |
stdout_logfile=/var/log/supervisor/fastapi.log
|
| 17 |
stderr_logfile=/var/log/supervisor/fastapi.log
|
| 18 |
stdout_logfile_maxbytes=5MB
|
| 19 |
+
; start.sh exports all secrets before exec'ing supervisord, so the child
|
| 20 |
+
; process inherits the full parent environment. We only need to set the two
|
| 21 |
+
; vars that are NOT already in the shell environment.
|
| 22 |
+
environment=PYTHONUNBUFFERED="1",PYTHONPATH="/app/backend"
|
| 23 |
|
| 24 |
[program:nextjs]
|
| 25 |
command=node server.js
|