Getting Gunicorn to run on port 80

情到浓时终转凉″ 提交于 2019-11-30 12:08:33

Try putting authbind inside your deployment script, e.g.:

mkdir .log 2> /dev/null
DEBUG=0 authbind gunicorn -b 0.0.0.0:80 backend:app --access-logfile .log/access.log --error-logfile .log/general.log

Then just run ./deployment.run 80.

(Also, your script doesn't seem to be using any parameters; perhaps replace 80 in your script with $1?)

If you are on a unix-like environment, ports < 1024 (like 80) will require superuser privileges.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!