Mos*_*ted 5 python wsgi bottle gunicorn
像这样运行瓶子脚本有什么区别
from bottle import route, run
@route('/')
def index():
return 'Hello!'
run(server='gunicorn', host='0.0.0.0', port=8080)
Run Code Online (Sandbox Code Playgroud)
使用命令python app.py和这个
from bottle import route, default_app
@route('/')
def index():
return 'Hello!'
app = default_app()
Run Code Online (Sandbox Code Playgroud)
使用命令gunicorn app:app --bind='0.0.0.0:8080'
| 归档时间: |
|
| 查看次数: |
3752 次 |
| 最近记录: |