Update
This commit is contained in:
parent
a54de518ac
commit
27bee6dbbb
2 changed files with 2 additions and 1 deletions
1
Procfile
1
Procfile
|
|
@ -1 +0,0 @@
|
||||||
web: gunicorn -b :$PORT app:app
|
|
||||||
2
app.py
2
app.py
|
|
@ -2,10 +2,12 @@ import os
|
||||||
from flask import Flask
|
from flask import Flask
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
def hello_world(): # put application's code here
|
def hello_world(): # put application's code here
|
||||||
return 'Hello World!'
|
return 'Hello World!'
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
port = int(os.environ.get('PORT', 33507))
|
port = int(os.environ.get('PORT', 33507))
|
||||||
app.run(host='0.0.0.0', port=port, debug=True)
|
app.run(host='0.0.0.0', port=port, debug=True)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue