Skip to content

Commit

Permalink
Add command for sending mail
Browse files Browse the repository at this point in the history
Refs: PV-872
  • Loading branch information
tonipel authored and mhieta committed Oct 2, 2024
1 parent 8272aa5 commit 2f83785
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ INTERNAL_IPS=127.0.0.1
BOOTSTRAP_PARKING_PERMITS=True
CREATE_SUPERUSER=True
DEV_SERVER=True
SEND_MAIL=True
DJANGO_SECRET_KEY=NotImportantHere
[email protected]
DJANGO_SUPERUSER_PASSWORD=coconut
Expand Down
4 changes: 4 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ if [[ "$UPDATE_TRANSLATIONS" = "True" ]]; then
python /app/manage.py compilemessages -l fi
fi

if [[ "$SEND_MAIL" = "True" && "$DEBUG" = "False" ]]; then
python /app/manage.py runmailer_pg &
fi

if [[ "$DEV_SERVER" = "True" ]]; then
python /app/manage.py runserver 0.0.0.0:8888
else
Expand Down
2 changes: 1 addition & 1 deletion project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
EMAIL_TIMEOUT=(int, 15),
DEFAULT_FROM_EMAIL=(str, "Pysäköintitunnukset <[email protected]>"),
THIRD_PARTY_PARKING_PROVIDER_EMAILS=(list, []),
MAILER_USE_FILE_LOCK=(bool, True),
MAILER_USE_FILE_LOCK=(bool, False),
MAILER_LOCK_PATH=(str, "/tmp"),
FIELD_ENCRYPTION_KEYS=(str, ""),
SENTRY_DSN=(str, ""),
Expand Down

0 comments on commit 2f83785

Please sign in to comment.