bookstore icon indicating copy to clipboard operation
bookstore copied to clipboard

nohup gunicorn -w 3 -b 0.0.0.0:8000 bookstore.wsgi:application &

Open zhoups opened this issue 6 years ago • 1 comments

部分css和js找不到 浏览器默认加的端口加路径 我换成nohup gunicorn -w 3 -b 0.0.0.0:80 bookstore.wsgi:application &

zhoups avatar Nov 12 '18 10:11 zhoups

把nginx配置文件中的server_name改成127.0.0.1;location / 里的proxy_pass改成http://127.0.0.1:8000;就可以了。然后gunicorn启动命令 nohup gunicorn -w 3 -b 127.0.0.1:8000 bookstore.wsgi:application &,浏览器输入127.0.0.1就可以访问了。

malqch avatar Nov 20 '18 08:11 malqch