add sqldb init
This commit is contained in:
@@ -3,6 +3,19 @@ nodaemon=true
|
||||
logfile=/dev/null
|
||||
pidfile=/var/run/supervisord.pid
|
||||
|
||||
; --- Database Init ---
|
||||
[program:initdb]
|
||||
directory=/app/server
|
||||
command=/usr/local/bin/python database.py
|
||||
autostart=true
|
||||
autorestart=false
|
||||
startsecs=0
|
||||
stdout_logfile=/dev/stdout
|
||||
stderr_logfile=/dev/stderr
|
||||
stdout_logfile_maxbytes=0
|
||||
stderr_logfile_maxbytes=0
|
||||
priority=5
|
||||
|
||||
; --- Flask API (gunicorn) ---
|
||||
[program:api]
|
||||
directory=/app/server
|
||||
|
||||
Reference in New Issue
Block a user