-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapp.json
44 lines (44 loc) · 1.27 KB
/
app.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
"scripts": {
"dokku": {
"predeploy": "python manage.py collectstatic --noinput"
}
},
"cron": [
{
"schedule": "0 0 * * 1",
"command": "bin/output-on-error bin/backup-data-dir.bash"
},
{
"schedule": "0 1 * * *",
"command": "bin/output-on-error ./manage.py core_list_malformed_slugs"
},
{
"schedule": "30 1 * * *",
"command": "bin/output-on-error ./manage.py core_database_dump /data/media_root/dumps/pg-dump && bin/output-on-error gzip -9 -f /data/media_root/dumps/pg-dump_schema.sql /data/media_root/dumps/pg-dump_data.sql"
},
{
"schedule": "10 2 * * *",
"command": "bin/output-on-error bin/update_za_hansard.bash"
},
{
"schedule": "0 5 * * *",
"command": "bin/output-on-error python manage.py core_export_to_popolo_json /data/media_root/popolo_json http://www.pa.org.za"
},
{
"schedule": "30 5 * * *",
"command": "bin/output-on-error python manage.py core_export_to_popolo_json --pombola /data/media_root/popolo_json http://www.pa.org.za"
}
],
"healthchecks": {
"web": [
{
"type": "startup",
"name": "web check",
"description": "Checking if web responds",
"path": "/",
"attempts": 3
}
]
}
}