get output from gunicorn into some logs for now

This commit is contained in:
2022-03-12 22:23:41 +11:00
parent 226f6fdb3e
commit faeec228ca

View File

@@ -1,4 +1,4 @@
#!/bin/bash
su mythtv -g mythtv -c 'FLASK_ENV="production" python3 /code/pa_job_manager.py' > /var/log/pa_job_manager.out &
gunicorn --bind=0.0.0.0:443 --workers=4 --threads=16 --certfile /etc/letsencrypt/live/pa.depaoli.id.au/fullchain.pem --keyfile /etc/letsencrypt/live/pa.depaoli.id.au/privkey.pem main:app --env FLASK_ENV="production"
gunicorn --bind=0.0.0.0:443 --workers=4 --threads=16 --certfile /etc/letsencrypt/live/pa.depaoli.id.au/fullchain.pem --keyfile /etc/letsencrypt/live/pa.depaoli.id.au/privkey.pem main:app --env FLASK_ENV="production" --error-logfile gunicorn.error.log --access-logfile gunicorn.log --capture-output