This commit is contained in:
Darren 2023-10-21 17:41:27 +08:00 committed by GitHub
parent 2001eadadc
commit e466f3b41d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 7 deletions

View File

@ -1,4 +1,4 @@
# modify time: 202310211458, you can modify here to trigger Docker Build action
# modify time: 2023102117, you can modify here to trigger Docker Build action
FROM python:3.10-bullseye AS buildstage
LABEL maintainer="Websoft9<help@websoft9.com>"

View File

@ -9,7 +9,7 @@ set -e
try_times=5
# TODO start by supervisord on frontground(/usr/bin/supervisord -n -c /etc/supervisor/conf.d/supervisord.conf)
exec supervisord -c /etc/supervisor/conf.d/supervisord.conf
supervisord
supervisorctl start apphub
# set git user and email
@ -42,4 +42,4 @@ else
exit 1
fi
tail -f /dev/null
tail -f /var/log/supervisord.log

View File

@ -1,19 +1,26 @@
[supervisord]
nodaemon=false
logfile=/var/log/supervisord.log
logfile_maxbytes=50MB
logfile_backups=10
loglevel=info
user=root
[program:apphub]
command=uvicorn src.main:app --host 0.0.0.0 --port 8080
autostart=false
user=root
directory=/websoft9/apphub
stdout_logfile=/dev/stdout
stdout_logfile=/var/log/supervisord.log
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile=/var/log/supervisord.log
stderr_logfile_maxbytes=0
[program:apphubdev]
command=/developer.sh
autostart=false
stdout_logfile=/dev/stdout
user=root
stdout_logfile=/var/log/supervisord.log
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile=/var/log/supervisord.log
stderr_logfile_maxbytes=0