mirror of
https://github.com/sartography/protocol-builder-mock.git
synced 2025-01-12 08:44:46 +00:00
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/
|
||||
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
|
||||
|
||||
# run migrations
|
||||
export FLASK_APP=./app.py
|
||||
export FLASK_APP=/app/pb/__init__.py
|
||||
|
||||
if [ "$DOWNGRADE_DB" = "true" ]; then
|
||||
echo 'Downgrading database...'
|
||||
|
Loading…
x
Reference in New Issue
Block a user