Spaces:
Sleeping
Sleeping
Create supervisord.conf
Browse files- supervisord.conf +21 -0
supervisord.conf
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[supervisord]
|
| 2 |
+
nodaemon=true
|
| 3 |
+
logfile=/var/log/supervisor/supervisord.log
|
| 4 |
+
pidfile=/var/run/supervisord.pid
|
| 5 |
+
|
| 6 |
+
[program:node-app]
|
| 7 |
+
command=node server/dist/index.js
|
| 8 |
+
directory=/app
|
| 9 |
+
autostart=true
|
| 10 |
+
autorestart=true
|
| 11 |
+
redirect_stderr=true
|
| 12 |
+
stdout_logfile=/var/log/supervisor/node-app.log
|
| 13 |
+
stdout_logfile_maxbytes=50MB
|
| 14 |
+
|
| 15 |
+
[program:cron]
|
| 16 |
+
command=cron -f
|
| 17 |
+
autostart=true
|
| 18 |
+
autorestart=false
|
| 19 |
+
redirect_stderr=true
|
| 20 |
+
stdout_logfile=/var/log/supervisor/cron.log
|
| 21 |
+
stdout_logfile_maxbytes=10MB
|