1
Fork 0

Always use waitress to serve

This commit is contained in:
Jake Howard 2018-10-26 09:19:47 +01:00
parent a5e327f90f
commit b7cf2edfd3
Signed by: jake
GPG Key ID: 57AFB45680EDD477
3 changed files with 2 additions and 6 deletions

View File

@ -19,7 +19,7 @@ mypy = "*"
python_version = "3.7"
[scripts]
start = "python3 app/server.py"
start = "waitress-serve app.server:app"
test-fix = "bash ./scripts/test-fix.sh"
test = "bash ./scripts/test.sh"

View File

@ -1 +1 @@
web: waitress-serve --port $PORT app.server:app
web: pipenv run start --port $PORT

View File

@ -15,7 +15,3 @@ webhook = Webhook(app, secret=config.GITHUB_WEBHOOK_SECRET)
@webhook.hook(event_type="ping")
def ping(data):
return abort(jsonify({"ping": "pong"}))
if __name__ == "__main__":
app.run(host="0.0.0.0")