Meet Radadiya commited on
Commit
46cb413
·
1 Parent(s): 57b09e6

Route all logs to stdout/stderr for HF Spaces visibility

Browse files
Files changed (1) hide show
  1. supervisord.conf +10 -5
supervisord.conf CHANGED
@@ -1,6 +1,7 @@
1
  [supervisord]
2
  nodaemon=true
3
- logfile=/tmp/supervisord.log
 
4
  pidfile=/tmp/supervisord.pid
5
 
6
  [program:api]
@@ -9,8 +10,10 @@ directory=/app
9
  environment=PYTHONPATH="/app"
10
  autostart=true
11
  autorestart=true
12
- stdout_logfile=/tmp/api.log
13
- stderr_logfile=/tmp/api.log
 
 
14
 
15
  [program:frontend]
16
  command=python -m streamlit run app.py --server.port 7860 --server.address 0.0.0.0 --server.headless true
@@ -18,5 +21,7 @@ directory=/app/frontend
18
  environment=PYTHONPATH="/app/frontend:/app"
19
  autostart=true
20
  autorestart=true
21
- stdout_logfile=/tmp/frontend.log
22
- stderr_logfile=/tmp/frontend.log
 
 
 
1
  [supervisord]
2
  nodaemon=true
3
+ logfile=/dev/stdout
4
+ logfile_maxbytes=0
5
  pidfile=/tmp/supervisord.pid
6
 
7
  [program:api]
 
10
  environment=PYTHONPATH="/app"
11
  autostart=true
12
  autorestart=true
13
+ stdout_logfile=/dev/stdout
14
+ stdout_logfile_maxbytes=0
15
+ stderr_logfile=/dev/stderr
16
+ stderr_logfile_maxbytes=0
17
 
18
  [program:frontend]
19
  command=python -m streamlit run app.py --server.port 7860 --server.address 0.0.0.0 --server.headless true
 
21
  environment=PYTHONPATH="/app/frontend:/app"
22
  autostart=true
23
  autorestart=true
24
+ stdout_logfile=/dev/stdout
25
+ stdout_logfile_maxbytes=0
26
+ stderr_logfile=/dev/stderr
27
+ stderr_logfile_maxbytes=0