Skip to content

Commit e5383dd

Browse files
committed
Bind to heroku port.
1 parent a7dd4f3 commit e5383dd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from datetime import datetime
2+
import os
23

34
from flask import Flask, render_template, request, redirect, url_for, session
45
from passlib.hash import pbkdf2_sha256
@@ -66,4 +67,5 @@ def logout():
6667

6768

6869
if __name__ == "__main__":
69-
app.run()
70+
port = int(os.environ.get("PORT", 5000))
71+
app.run(host='0.0.0.0', port=port)

0 commit comments

Comments
 (0)