heroku integration
This commit is contained in:
parent
2244d3c9f2
commit
7f26747f09
4
app.py
4
app.py
@ -1,5 +1,6 @@
|
||||
from flask import Flask
|
||||
from flask_restful import Api, Resource
|
||||
import os
|
||||
import pbrAyctCore.core as core
|
||||
|
||||
app = Flask(__name__)
|
||||
@ -12,4 +13,5 @@ class Hello(Resource):
|
||||
api.add_resource(Hello, "/hello")
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(debug=True)
|
||||
port = int(os.environ.get('PORT', 5000))
|
||||
app.run(host = '0.0.0.0', port = port)
|
||||
|
3
heroku.yml
Normal file
3
heroku.yml
Normal file
@ -0,0 +1,3 @@
|
||||
build:
|
||||
docker:
|
||||
web: Dockerfile
|
Loading…
Reference in New Issue
Block a user