[英]Bottle with Gunicorn
像這樣運行瓶子腳本有什么區別
from bottle import route, run
@route('/')
def index():
return 'Hello!'
run(server='gunicorn', host='0.0.0.0', port=8080)
使用命令python app.py和this
from bottle import route, default_app
@route('/')
def index():
return 'Hello!'
app = default_app()
使用命令gunicorn app:app --bind ='0.0.0.0:8080'
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.