Skip to content

Commit

Permalink
mailer lockfile to tmp directory PLAENH-546
Browse files Browse the repository at this point in the history
  • Loading branch information
terovirtanen authored and jakezu committed Feb 24, 2023
1 parent 2764dad commit b6e0c04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions berth_reservations/settings.py
Expand Up @@ -35,6 +35,7 @@
DATABASE_CONN_MAX_AGE=(int, 60 * 60), # 60 min
CACHE_URL=(str, "locmemcache://"),
MAILER_EMAIL_BACKEND=(str, "django.core.mail.backends.console.EmailBackend"),
MAILER_LOCK_PATH=(str, "/tmp/mailer_lockfile"),
DEFAULT_FROM_EMAIL=(str, "venepaikkavaraukset@hel.fi"),
MAIL_MAILGUN_KEY=(str, ""),
MAIL_MAILGUN_DOMAIN=(str, ""),
Expand Down Expand Up @@ -119,6 +120,8 @@

EMAIL_BACKEND = "mailer.backend.DbBackend"
MAILER_EMAIL_BACKEND = env.str("MAILER_EMAIL_BACKEND")
if env("MAILER_LOCK_PATH"):
MAILER_LOCK_PATH = env.str("MAILER_LOCK_PATH")

try:
version = subprocess.check_output(
Expand Down

0 comments on commit b6e0c04

Please sign in to comment.