mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2025-06-28 05:25:11 +00:00
Split supervisor configuration to several files
This commit is contained in:
3
supervisor/components/event_handlers.conf
Normal file
3
supervisor/components/event_handlers.conf
Normal file
@ -0,0 +1,3 @@
|
||||
[program:event_handler_main]
|
||||
directory=%(ENV_TFW_EVENT_HANDLERS_DIR)s
|
||||
command=env python event_handler_main.py
|
4
supervisor/components/login.conf
Normal file
4
supervisor/components/login.conf
Normal file
@ -0,0 +1,4 @@
|
||||
[program:login]
|
||||
directory=%(ENV_TFW_LOGIN_APP_DIR)s
|
||||
command=env python server.py
|
||||
autostart=false
|
4
supervisor/components/terminado.conf
Normal file
4
supervisor/components/terminado.conf
Normal file
@ -0,0 +1,4 @@
|
||||
[program:terminado]
|
||||
directory=%(ENV_TFW_TERMINADO_DIR)s
|
||||
command=env python server.py
|
||||
autostart=false
|
@ -13,25 +13,14 @@ supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
||||
[supervisorctl]
|
||||
serverurl=http://127.0.0.1:%(ENV_TFW_SUPERVISOR_HTTP_PORT)s
|
||||
|
||||
[program:app]
|
||||
directory=%(ENV_TFW_APP_DIR)s
|
||||
command=env python app.py
|
||||
|
||||
[program:event_handler_main]
|
||||
directory=%(ENV_TFW_EVENT_HANDLERS_DIR)s
|
||||
command=env python event_handler_main.py
|
||||
|
||||
[program:login]
|
||||
directory=%(ENV_TFW_LOGIN_APP_DIR)s
|
||||
command=env python server.py
|
||||
autostart=false
|
||||
|
||||
[program:terminado]
|
||||
directory=%(ENV_TFW_TERMINADO_DIR)s
|
||||
command=env python server.py
|
||||
autostart=false
|
||||
|
||||
[program:nginx]
|
||||
command=/usr/sbin/nginx -g 'daemon off;'
|
||||
autostart=true
|
||||
autorestart=true
|
||||
|
||||
[program:app]
|
||||
directory=%(ENV_TFW_APP_DIR)s
|
||||
command=env python app.py
|
||||
|
||||
[include]
|
||||
files=%(ENV_TFW_SUPERVISORD_COMPONENTS)s/*.conf
|
||||
|
Reference in New Issue
Block a user