最近项目需要,开始用Flask框架进行开发,学习了下文档,并实践了下文档里面的例子,链接如下:https://dormousehole.readthedocs.io/en/latest/tutorial/index.html
应用工厂-运行应用
在 Linux and Mac 下:
export FLASK_APP=flaskr
export FLASK_ENV=development
flask run
如果想在外网访问虚拟机里面的应用应使用 flask run --host=0.0.0.0