
1 konia 2017 年 6 月 5 日 via iPhone 不用 nginx 直接访问 8001,也会这样吗? |
3 parametrix 2017 年 6 月 5 日 楼主确定 gunicorn 是正常运行的么,我印象中旧版本的 supervisor 运行 python 程序有 Bug 来着。 |
4 parametrix 2017 年 6 月 5 日 你看下是不是这个问题: #!/usr/bin/env bash cd /var/www/monmar export $(cat .env) && exec .venv/bin/gunicorn config.wsgi -c deploy/gunicorn.conf.py Please pay attention that we're not calling .venv/bin/gunicorn directly, but wrapping it with exec. If you don't do that, your Gunicorn program won't be supervisored, and you won't be able to stop and restart it properly. Ref: https://samoylov.eu/016/08/31/deploying-django-with-gunicorn-and-supervisor/ |
5 robinlovemaggie 2017 年 6 月 5 日 论日志的重要性 |
6 toarya OP @parametrix 谢谢!好像确实是这个问题,之前输出的日志是空的,这样跑了一下终于看到具体的异常了。 |
7 loveminds 2017 年 6 月 5 日 via Android @parametrix 为啥不直接用 systemd 启动 |
8 parametrix 2017 年 6 月 5 日 @loveminds 说得好,我一般也是直接用 systemd 的 :) |
9 loveminds 2017 年 6 月 6 日 @parametrix 我是超讨厌超级猥琐这种画蛇添足的东西,在它可以作为正式的 init 之前,多出的层级意味着损失效率和徒增故障点,systemd 的日志已经相当完善了,至于有些人要的 web 控制台,也有相应组件 |