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
source
share