2016-10-16 08:50:49 +01:00
|
|
|
# Run with: gunicorn --workers=1 --worker-class=meinheld.gmeinheld.MeinheldWorker -b :8000 simple_server:app
|
|
|
|
import bottle
|
2016-10-16 06:52:10 +01:00
|
|
|
from bottle import route, run
|
|
|
|
import ujson
|
|
|
|
|
|
|
|
|
2018-12-30 11:18:06 +00:00
|
|
|
@route("/")
|
2016-10-16 06:52:10 +01:00
|
|
|
def index():
|
2018-12-30 11:18:06 +00:00
|
|
|
return ujson.dumps({"test": True})
|
|
|
|
|
2016-10-16 06:52:10 +01:00
|
|
|
|
2016-10-16 08:50:49 +01:00
|
|
|
app = bottle.default_app()
|