Fix staticfiles path as per code
This commit is contained in:
parent
a91d2b16b6
commit
13b7918de1
2 changed files with 3 additions and 3 deletions
|
@ -44,7 +44,7 @@ RUN addgroup -S app && adduser -S app -G app
|
||||||
ENV HOME=/home/app
|
ENV HOME=/home/app
|
||||||
ENV APP_HOME=/home/app/app
|
ENV APP_HOME=/home/app/app
|
||||||
RUN mkdir $APP_HOME
|
RUN mkdir $APP_HOME
|
||||||
RUN mkdir $APP_HOME/staticfiles
|
RUN mkdir $APP_HOME/static
|
||||||
WORKDIR $APP_HOME
|
WORKDIR $APP_HOME
|
||||||
|
|
||||||
# install dependencies
|
# install dependencies
|
||||||
|
|
|
@ -7,7 +7,7 @@ services:
|
||||||
dockerfile: Dockerfile.prod
|
dockerfile: Dockerfile.prod
|
||||||
command: gunicorn gmba_django.wsgi:application --bind 0.0.0.0:8000
|
command: gunicorn gmba_django.wsgi:application --bind 0.0.0.0:8000
|
||||||
volumes:
|
volumes:
|
||||||
- static_volume:/home/app/app/staticfiles
|
- static_volume:/home/app/app/static
|
||||||
expose:
|
expose:
|
||||||
- 8000
|
- 8000
|
||||||
env_file:
|
env_file:
|
||||||
|
@ -23,7 +23,7 @@ services:
|
||||||
nginx:
|
nginx:
|
||||||
build: ./nginx
|
build: ./nginx
|
||||||
volumes:
|
volumes:
|
||||||
- static_volume:/home/app/app/staticfiles
|
- static_volume:/home/app/app/static
|
||||||
ports:
|
ports:
|
||||||
- 1337:80
|
- 1337:80
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|
Loading…
Reference in a new issue