heroku integration

This commit is contained in:
wangobango 2021-11-21 14:17:54 +01:00
parent 2244d3c9f2
commit 7f26747f09
2 changed files with 6 additions and 1 deletions

4
app.py
View File

@ -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
View File

@ -0,0 +1,3 @@
build:
docker:
web: Dockerfile