Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zhoups opened this issue Nov 12, 2018 · 1 comment
Open

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

zhoups opened this issue Nov 12, 2018 · 1 comment

Comments

@zhoups
Copy link

zhoups commented Nov 12, 2018

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

@malqch
Copy link

malqch commented Nov 20, 2018

把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就可以访问了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants