Sets path to flask app in docker_run

This commit is contained in:
Aaron Louie 2020-05-25 00:47:59 -04:00
parent 07d0c43e8e
commit 319af2c04e
2 changed files with 1 additions and 9 deletions

View File

@ -20,11 +20,3 @@ RUN set -xe \
COPY . /app/ COPY . /app/
WORKDIR /app WORKDIR /app
ENV FLASK_APP=/app/pb/__init__.py
# Don't run gunicorn until the DC/OS container actually starts.
# Otherwise, environment variables will not be available.
#CMD ["pipenv", "run", "gunicorn", \
# "--bind", "0.0.0.0:8000", \
# "-e", "SCRIPT_NAME=/api", \
# "wsgi:app"]

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
# run migrations # run migrations
export FLASK_APP=./app.py export FLASK_APP=/app/pb/__init__.py
if [ "$DOWNGRADE_DB" = "true" ]; then if [ "$DOWNGRADE_DB" = "true" ]; then
echo 'Downgrading database...' echo 'Downgrading database...'