Hosikorn Bottle

What is the difference between a running bottle script like this

from bottle import route, run

@route('/')
def index():
    return 'Hello!'

run(server='gunicorn', host='0.0.0.0', port=8080)

with the python app.py team and this one

from bottle import route, default_app

@route('/')
def index():
    return 'Hello!'

app = default_app()

with the gunicorn app: app --bind = '0.0.0.0: 8080' command

+4
source share
1 answer

Essentially nothing.

GunicornServer , . this , gunicorn setup.py. WSGIApplication. , default_proc_name "app: app", "gunicorn" , . .

+3

All Articles