mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 01:50:19 +08:00
logs
This commit is contained in:
parent
2001eadadc
commit
e466f3b41d
@ -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
|
FROM python:3.10-bullseye AS buildstage
|
||||||
LABEL maintainer="Websoft9<help@websoft9.com>"
|
LABEL maintainer="Websoft9<help@websoft9.com>"
|
||||||
|
@ -9,7 +9,7 @@ set -e
|
|||||||
try_times=5
|
try_times=5
|
||||||
|
|
||||||
# TODO start by supervisord on frontground(/usr/bin/supervisord -n -c /etc/supervisor/conf.d/supervisord.conf)
|
# 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
|
supervisorctl start apphub
|
||||||
|
|
||||||
# set git user and email
|
# set git user and email
|
||||||
@ -42,4 +42,4 @@ else
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
tail -f /dev/null
|
tail -f /var/log/supervisord.log
|
@ -1,19 +1,26 @@
|
|||||||
[supervisord]
|
[supervisord]
|
||||||
nodaemon=false
|
nodaemon=false
|
||||||
|
logfile=/var/log/supervisord.log
|
||||||
|
logfile_maxbytes=50MB
|
||||||
|
logfile_backups=10
|
||||||
|
loglevel=info
|
||||||
|
user=root
|
||||||
|
|
||||||
[program:apphub]
|
[program:apphub]
|
||||||
command=uvicorn src.main:app --host 0.0.0.0 --port 8080
|
command=uvicorn src.main:app --host 0.0.0.0 --port 8080
|
||||||
autostart=false
|
autostart=false
|
||||||
|
user=root
|
||||||
directory=/websoft9/apphub
|
directory=/websoft9/apphub
|
||||||
stdout_logfile=/dev/stdout
|
stdout_logfile=/var/log/supervisord.log
|
||||||
stdout_logfile_maxbytes=0
|
stdout_logfile_maxbytes=0
|
||||||
stderr_logfile=/dev/stderr
|
stderr_logfile=/var/log/supervisord.log
|
||||||
stderr_logfile_maxbytes=0
|
stderr_logfile_maxbytes=0
|
||||||
|
|
||||||
[program:apphubdev]
|
[program:apphubdev]
|
||||||
command=/developer.sh
|
command=/developer.sh
|
||||||
autostart=false
|
autostart=false
|
||||||
stdout_logfile=/dev/stdout
|
user=root
|
||||||
|
stdout_logfile=/var/log/supervisord.log
|
||||||
stdout_logfile_maxbytes=0
|
stdout_logfile_maxbytes=0
|
||||||
stderr_logfile=/dev/stderr
|
stderr_logfile=/var/log/supervisord.log
|
||||||
stderr_logfile_maxbytes=0
|
stderr_logfile_maxbytes=0
|
Loading…
Reference in New Issue
Block a user