部署完 gunicorn+ngnix+supervisor 后可以进入 /user/的登录界面,但是输入表单后,点登录跳转,就会直接
Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
不用 supervisor,直接在项目目录用 gunicorn 启动就没问题。
gunicrorn 日志如下,但不知道怎么能看到更详细点的日志...
127.0.0.1 - - [05/Jun/2017:09:41:36 +0800] "GET / HTTP/1.0" 302 219 "-"
127.0.0.1 - - [05/Jun/2017:09:41:36 +0800] "GET /user/ HTTP/1.0" 200 3902 "-"
127.0.0.1 - - [05/Jun/2017:09:41:36 +0800] "GET /static/images/icons.png HTTP/1.0" 404 233 "http://XXX.XX.XXX.238/static/css/login_style.css"
127.0.0.1 - - [05/Jun/2017:09:41:40 +0800] "POST /user/login HTTP/1.0" 500 291 "http://XXX.XX.XXX.238/user/"
supervisor 配置如下
[program:tweet-demo]
command=/usr/local/bin/gunicorn wsgi --worker-class=gevent --bind 0.0.0.0:8001 --pid /tmp/tweet-demo.pid
directory=/home/ubuntu/demo/tweet-demo
求解救...
Internal Server Error
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
不用 supervisor,直接在项目目录用 gunicorn 启动就没问题。
gunicrorn 日志如下,但不知道怎么能看到更详细点的日志...
127.0.0.1 - - [05/Jun/2017:09:41:36 +0800] "GET / HTTP/1.0" 302 219 "-"
127.0.0.1 - - [05/Jun/2017:09:41:36 +0800] "GET /user/ HTTP/1.0" 200 3902 "-"
127.0.0.1 - - [05/Jun/2017:09:41:36 +0800] "GET /static/images/icons.png HTTP/1.0" 404 233 "http://XXX.XX.XXX.238/static/css/login_style.css"
127.0.0.1 - - [05/Jun/2017:09:41:40 +0800] "POST /user/login HTTP/1.0" 500 291 "http://XXX.XX.XXX.238/user/"
supervisor 配置如下
[program:tweet-demo]
command=/usr/local/bin/gunicorn wsgi --worker-class=gevent --bind 0.0.0.0:8001 --pid /tmp/tweet-demo.pid
directory=/home/ubuntu/demo/tweet-demo
求解救...