Fix staticfiles path as per code

This commit is contained in:
PCoder 2022-09-19 09:54:17 +05:30
parent a91d2b16b6
commit 13b7918de1
2 changed files with 3 additions and 3 deletions

View file

@ -44,7 +44,7 @@ RUN addgroup -S app && adduser -S app -G app
ENV HOME=/home/app
ENV APP_HOME=/home/app/app
RUN mkdir $APP_HOME
RUN mkdir $APP_HOME/staticfiles
RUN mkdir $APP_HOME/static
WORKDIR $APP_HOME
# install dependencies

View file

@ -7,7 +7,7 @@ services:
dockerfile: Dockerfile.prod
command: gunicorn gmba_django.wsgi:application --bind 0.0.0.0:8000
volumes:
- static_volume:/home/app/app/staticfiles
- static_volume:/home/app/app/static
expose:
- 8000
env_file:
@ -23,7 +23,7 @@ services:
nginx:
build: ./nginx
volumes:
- static_volume:/home/app/app/staticfiles
- static_volume:/home/app/app/static
ports:
- 1337:80
depends_on: