Update
This commit is contained in:
parent
79b9de99d9
commit
de6c910cc1
2 changed files with 4 additions and 1 deletions
1
Procfile
Normal file
1
Procfile
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
web: gunicorn -b :$PORT app:app
|
||||||
4
app.py
4
app.py
|
|
@ -1,3 +1,4 @@
|
||||||
|
import os
|
||||||
from flask import Flask
|
from flask import Flask
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
|
@ -6,4 +7,5 @@ def hello_world(): # put application's code here
|
||||||
return 'Hello World!'
|
return 'Hello World!'
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
app.run()
|
port = int(os.environ.get('PORT', 5000))
|
||||||
|
app.run(host='0.0.0.0', port=port, debug=True)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue