This commit is contained in:
Yûki VACHOT 2021-10-18 07:43:49 +02:00
parent 79b9de99d9
commit de6c910cc1
2 changed files with 4 additions and 1 deletions

4
app.py
View file

@ -1,3 +1,4 @@
import os
from flask import Flask
app = Flask(__name__)
@ -6,4 +7,5 @@ def hello_world(): # put application's code here
return 'Hello World!'
if __name__ == '__main__':
app.run()
port = int(os.environ.get('PORT', 5000))
app.run(host='0.0.0.0', port=port, debug=True)