Start celerybeat on the staging notif backend
Signed-off-by: Jeremy Cline <jeremy@jcline.org>
This commit is contained in:
parent
bb9d9dc0c8
commit
a746737520
2 changed files with 25 additions and 0 deletions
|
@ -71,3 +71,12 @@
|
|||
tags:
|
||||
- notifs
|
||||
- notifs/backend
|
||||
|
||||
- name: start the FMN celerybeat service
|
||||
service: name={{item}} enabled=yes state=started
|
||||
with_items:
|
||||
- fmn-celerybeat
|
||||
tags:
|
||||
- notifs
|
||||
- notifs/backend
|
||||
when: env == "staging"
|
||||
|
|
|
@ -182,6 +182,21 @@ config = {
|
|||
"fmn.support_email": "notifications@" + domain,
|
||||
|
||||
# Generic stuff
|
||||
{% if env == 'staging' %}
|
||||
"logging": dict(
|
||||
loggers=dict(
|
||||
fmn={
|
||||
"level": "INFO",
|
||||
"propagate": False,
|
||||
"handlers": ["console", "mailer"],
|
||||
},
|
||||
),
|
||||
root={
|
||||
'level': 'INFO',
|
||||
'handlers': ['console', 'mailer'],
|
||||
},
|
||||
),
|
||||
{% else %}
|
||||
"logging": dict(
|
||||
loggers=dict(
|
||||
fmn={
|
||||
|
@ -191,4 +206,5 @@ config = {
|
|||
},
|
||||
),
|
||||
),
|
||||
{% endif %}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue