Skip to content

Commit

Permalink
Update Dockerfile and wsgi.py file to modify app structure
Browse files Browse the repository at this point in the history
  • Loading branch information
scaphilo committed Apr 6, 2024
1 parent b6d0936 commit afb09d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN apt-get update && apt-get install -y \

WORKDIR /usr/src/app

COPY koalixcrmprod /usr/src/app/koalixcrmprod
COPY koalixcrmprod /usr/src/app

# Install dependencies
RUN pip install --upgrade pip
Expand All @@ -36,4 +36,4 @@ ENV DJANGO_SETTINGS_MODULE=settings.production_docker_postgres_settings
EXPOSE 8000

# Command to run the Django development server
CMD python koalixcrmprod/manage.py migrate && gunicorn --bind :8000 koalixcrmprod.wsgi
CMD python manage.py migrate && gunicorn --bind :8000 wsgi
1 change: 1 addition & 0 deletions koalixcrmprod/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
from django.core.wsgi import get_wsgi_application

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'koalixcrmprod.settings.production_docker_postgres_settings')

application = get_wsgi_application()

0 comments on commit afb09d2

Please sign in to comment.