Sets path to flask app in docker_run
This commit is contained in:
parent
cb2613feee
commit
14a2e4b5fa
|
@ -20,11 +20,3 @@ RUN set -xe \
|
|||
|
||||
COPY . /app/
|
||||
WORKDIR /app
|
||||
ENV FLASK_APP=/app/crc/__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=./crc/__init__.py
|
||||
export FLASK_APP=/app/crc/__init__.py
|
||||
|
||||
if [ "$DOWNGRADE_DB" = "true" ]; then
|
||||
echo 'Downgrading database...'
|
||||
|
@ -18,4 +18,4 @@ if [ "$RESET_DB" = "true" ]; then
|
|||
pipenv run flask load-example-data
|
||||
fi
|
||||
|
||||
pipenv run gunicorn -e SCRIPT_NAME="$APPLICATION_ROOT" --bind 0.0.0.0:$PORT0 wsgi:app
|
||||
pipenv run gunicorn -e SCRIPT_NAME="$APPLICATION_ROOT" --bind 0.0.0.0:"$PORT0" wsgi:app
|
||||
|
|
Loading…
Reference in New Issue