python
# myapp.py
def application(env, start_response):
start_response('200 OK', [('Content-Type','text/html')])
return [b"Hello World"]
$ gunicorn myapp:application
bash
$ gunicorn myapp:application --bind 0.0.0.0:8000 --workers 4 --timeout 60 --accesslog access.log
python
# gunicorn.conf.py
bind = '0.0.0.0:8000'
workers = 4
timeout = 60
accesslog = '/path/to/access.log'
bash
$ gunicorn myapp:application -c gunicorn.conf.py