Skip to content

Commit

Permalink
Fixed deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Malinowski authored and Edward Malinowski committed Apr 2, 2024
1 parent 690a4e1 commit e225c7c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,6 @@ RUN source /venv/bin/activate
ENV PYTHONUNBUFFERED=1 \
PYTHONIOENCODING=UTF-8

WORKDIR /var/www/${appname}

CMD ["gunicorn", "-c", "deployment/wsgi/gunicorn.conf.py"]
7 changes: 4 additions & 3 deletions deployment/wsgi/wsgi.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from peregrine import app_init, app
import sys

app_init(app)
application = app
sys.path.append("/var/www/peregrine/")
sys.path.append("/peregrine/")
from wsgi import app as application

0 comments on commit e225c7c

Please sign in to comment.