walle's recent timeline updates
walle

walle

V2EX member #22091, joined on 2012-06-10 14:38:39 +08:00
walle's recent replies
使用nginx是正确的做法。
前几天也被这个困扰到,所以直接找到/usr/local/lib/python2.7/dist-packages/flask_script里面的commands.py文件把里面的host='127.0.0.1'改成host='0.0.0.0'。

当我把这个提交到github上去的时候,一个项目维护者给了我这么一段话。
Don't use the dev server for production. Use a real app and web server combo, such as uwsgi and nginx.

With this change, you make everyone expose their dev code in debug mode to anyone on the network by default, which is a bad idea.
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1597 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 16:36 · PVG 00:36 · LAX 09:36 · JFK 12:36
♥ Do have faith in what you're doing.