From 21fe50ed08fe05294b39e765d5817c8af3c31d24 Mon Sep 17 00:00:00 2001 From: Aaron Louie Date: Tue, 14 Jan 2020 15:26:39 -0500 Subject: [PATCH 1/2] Import api before Connexion does its thing. --- crc/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/crc/__init__.py b/crc/__init__.py index 0f86ef42..5dc52dc9 100644 --- a/crc/__init__.py +++ b/crc/__init__.py @@ -28,6 +28,7 @@ migrate = Migrate(app, db) ma = Marshmallow(app) from crc import models +from crc import api connexion_app.add_api('api.yml') cors = CORS(connexion_app.app) From d43845fb4c60b22bc8f10f3c9641252d06b991c2 Mon Sep 17 00:00:00 2001 From: Aaron Louie Date: Tue, 14 Jan 2020 15:35:14 -0500 Subject: [PATCH 2/2] Echoes environment variable --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 6dc415aa..4794c939 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,7 @@ ADD Pipfile.lock /crc-workflow/ RUN pipenv install --dev ENV FLASK_APP=./crc/__init__.py +RUN echo $FLASK_APP # include rejoiner code (gets overriden by local changes) COPY . /crc-workflow/