websoft9/docker/apphub/config/supervisord.conf
2023-10-11 11:50:09 +08:00

12 lines
397 B
Plaintext

[supervisord]
nodaemon=false
[program:apphub]
command=uvicorn src.main:app --host 0.0.0.0 --port 8080 --log-level error
autostart=true
directory=/websoft9/apphub
[program:apphubdev]
command=/bin/bash -c '[ -z "$(ls -A /websoft9/src)" ] && cp -r /websoft9/apphub/* /websoft9/src && uvicorn src.main:app --reload --host 0.0.0.0 --port 8080 --log-level error'
autostart=true
directory=/websoft9/src