1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-11-22 07:10:09 +01:00

Testing v4

This commit is contained in:
Donald Zou 2024-08-04 19:35:59 -04:00
parent 18b18c1396
commit 47ea60c0cd
2 changed files with 5 additions and 4 deletions

View File

@ -12,3 +12,7 @@ daemon = True
pidfile = './gunicorn.pid'
print_config = True
wsgi_app = "dashboard:app"
access_logfile = "./log/access.log"
log_level = "debug"
capture_output = True
error_logfile = "./log/error.log"

View File

@ -237,10 +237,7 @@ gunicorn_start () {
export PATH=$PATH:/usr/local/bin:$HOME/.local/bin
fi
_check_and_set_venv
sudo "$venv_gunicorn" --access-logfile log/access.log \
--log-level 'debug' --capture-output \
--config ./gunicorn.conf.py \
--error-logfile log/error.log --daemon 'dashboard:app'
sudo "$venv_gunicorn" --config ./gunicorn.conf.py
sleep 5
checkPIDExist=0
while [ $checkPIDExist -eq 0 ]