-
Notifications
You must be signed in to change notification settings - Fork 2
/
app.json
69 lines (69 loc) · 1.99 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"name": "Webathon Backend",
"description": "A Django API to help conduct online hackathons/team events.",
"repository": "https://github.com/ShauryaAg/Webathon-Backend",
"addons": [
{
"plan": "heroku-postgresql"
}
],
"buildpacks": [
{
"url": "heroku/python"
}
],
"env": {
"SECRET_KEY": {
"description": "Django SECRET_KEY",
"generator": "secret"
},
"DEBUG": {
"description": "If it should show errors. (Keep False for production environment)",
"value": "True"
},
"DB_HOST": {
"description": "Host for the custom database (if not provided it will default to Heroku database)",
"required": false
},
"DB_NAME": {
"description": "Custom database name",
"required": false
},
"DB_USER": {
"description": "Custom database user",
"required": false
},
"DB_PASSWORD": {
"description": "Custom database user password",
"required": false
},
"DB_PORT": {
"description": "PORT for custom database",
"value": 5432,
"required": false
},
"EMAIL_USE_TLS": {
"description": "Ecryption for sending emails",
"value": "True"
},
"EMAIL_HOST": {
"description": "Host for sending emails",
"value": "smtp.gmail.com"
},
"EMAIL_PORT": {
"description": "PORT for sending emails",
"value": "587"
},
"EMAIL_HOST_USER": {
"description": "[From] Email for sending emails",
"required": true
},
"EMAIL_HOST_PASSWORD": {
"description": "[From] Email password",
"required": true
}
},
"scripts": {
"postdeploy": "python manage.py initgroups && echo \"from django.contrib.auth import get_user_model; CustomUser = get_user_model(); CustomUser.objects.create_superuser('admin', 'admin@example.com', 'admin')\" | python manage.py shell"
}
}