Skip to content

Commit

Permalink
Add needed env vers for building purposes on fly.io
Browse files Browse the repository at this point in the history
  • Loading branch information
fnscoder committed Nov 22, 2024
1 parent d429d80 commit 5951ea9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ COPY . /code

# env var for building purposes
ENV SECRET_KEY "aGkCk2XY3qk7kOZ0HDXoGq5DXlshIhfpspT2bgrV13CzJWCsQa"
ENV CORS_ALLOWED_ORIGINS "localhost:5173"
ENV ALLOWED_HOSTS "http://localhost"
ENV CSRF_TRUSTED_ORIGINS "http://localhost"

RUN python manage.py collectstatic --noinput

Expand Down

0 comments on commit 5951ea9

Please sign in to comment.