diff --git a/Procfile b/Procfile index 8001d1a..ca6e941 100644 --- a/Procfile +++ b/Procfile @@ -1 +1 @@ -web: gunicorn app:app \ No newline at end of file +web: gunicorn app:app diff --git a/app.py b/app.py index 2279c09..af7b825 100644 --- a/app.py +++ b/app.py @@ -18,6 +18,8 @@ def create_app(environment='Development'): if __name__ == '__main__': env = getenv('DAILYDIET_ENV') if env is None: - create_app().run() + app = create_app() else: - create_app(env).run() + app = create_app(env) + + app.run() diff --git a/calculator/calculator.py b/calculator/calculator.py index b434dec..3516b18 100644 --- a/calculator/calculator.py +++ b/calculator/calculator.py @@ -5,6 +5,12 @@ calculator = Blueprint('calculator', __name__) +# temporary todo:remove temp main +@calculator.route('/', methods=['GET']) +def temp_main(): + return '