-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.json
49 lines (49 loc) · 1.54 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
45
46
47
48
49
{
"name": "heroku-django-geninfo",
"description": "A simple project to get started with Django on Heroku",
"repository": "https://github.com/genomika/geninfo",
"keywords": ["python", "django", "infrastructure", "services", "monitor", "status"],
"env": {
"DJANGO_SECRET_KEY": {
"description": "A randomly generated secret to secure your Django installation",
"generator": "secret"
},
"DJANGO_SETTINGS_MODULE": {
"description": "Django settings Python import path",
"value": "geninfo.settings.production"
},
"ADMIN_USER": {
"description": "The username of your admin account",
"value": "admin"
},
"ADMIN_EMAIL": {
"description": "The initial email of your admin account"
},
"ADMIN_PASSWORD": {
"description": "The initial password of your admin account"
}
},
"addons": [
{
"plan": "heroku-postgresql:hobby-dev",
"options": {
"version": "13"
},
"as": "DATABASE"
},
{
"plan": "sendgrid:starter"
},
{
"plan": "sentry:f1"
}
],
"buildpacks": [
{
"url": "heroku/python"
}
],
"scripts": {
"postdeploy": "python manage.py migrate --noinput && echo \"from django.contrib.auth.models import User; User.objects.create_superuser('${ADMIN_USER}', '${ADMIN_EMAIL}', '${ADMIN_PASSWORD}')\" | python manage.py shell && python manage.py loaddata geninfo/info/fixtures/services.json --app info.Service"
}
}