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" python_version = "3.7"
[scripts] [scripts]
start = "python3 app/server.py" start = "waitress-serve app.server:app"
test-fix = "bash ./scripts/test-fix.sh" test-fix = "bash ./scripts/test-fix.sh"
test = "bash ./scripts/test.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") @webhook.hook(event_type="ping")
def ping(data): def ping(data):
return abort(jsonify({"ping": "pong"})) return abort(jsonify({"ping": "pong"}))
if __name__ == "__main__":
app.run(host="0.0.0.0")