Fix heroku binding
This commit is contained in:
parent
358c76c906
commit
ac9f137e8f
1 changed files with 2 additions and 3 deletions
5
app.py
5
app.py
|
@ -5,8 +5,6 @@ from icalendar.cal import Calendar, Component
|
|||
|
||||
app = Flask(__name__)
|
||||
|
||||
port = int(os.environ.get('PORT', 33507))
|
||||
|
||||
|
||||
@app.route("/")
|
||||
def hello():
|
||||
|
@ -47,4 +45,5 @@ def hello():
|
|||
return other.to_ical().replace(b'\r\n', b'\n').strip()
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(port=port)
|
||||
port = int(os.environ.get('PORT', 5000))
|
||||
app.run('0.0.0.0', port)
|
||||
|
|
Loading…
Reference in a new issue