Always use waitress to serve
This commit is contained in:
parent
a5e327f90f
commit
b7cf2edfd3
3 changed files with 2 additions and 6 deletions
2
Pipfile
2
Pipfile
|
@ -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"
|
||||||
|
|
||||||
|
|
2
Procfile
2
Procfile
|
@ -1 +1 @@
|
||||||
web: waitress-serve --port $PORT app.server:app
|
web: pipenv run start --port $PORT
|
||||||
|
|
|
@ -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")
|
|
||||||
|
|
Reference in a new issue