Sets path to flask app in docker_run
This commit is contained in:
parent
07d0c43e8e
commit
319af2c04e
|
@ -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"]
|
|
||||||
|
|
|
@ -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...'
|
||||||
|
|
Loading…
Reference in New Issue