diff --git a/src/gunicorn.conf.py b/src/gunicorn.conf.py index 11b559b..1cad180 100644 --- a/src/gunicorn.conf.py +++ b/src/gunicorn.conf.py @@ -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" \ No newline at end of file diff --git a/src/wgd.sh b/src/wgd.sh index 5bcc9c5..63308e7 100755 --- a/src/wgd.sh +++ b/src/wgd.sh @@ -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 ]