-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapp.json
69 lines (69 loc) · 1.49 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": "Man",
"description": "Templates rendering as a service.",
"keywords": [
"reports",
"templates",
"email",
"sms",
"rendering"
],
"website": "http://docs.man2.apiary.io/",
"repository": "https://github.com/nebo15/man.api",
"success_url": "/templates",
"env": {
"HOST": {
"description": "HTTP host for web app to listen on.",
"value": "localhost"
},
"DB_MIGRATE": {
"description": "Migrate database when container starts.",
"required": true,
"value": "true"
},
"SECRET_KEY": {
"description": "Phoenix `:secret_key_base`.",
"required": true,
"generator": "secret"
},
"ERLANG_COOKIE": {
"description": "Erlang distribution cookie.",
"required": true,
"generator": "secret"
},
"MIX_ENV": {
"description": "Mix environment to use: test, dev, prod.",
"required": true,
"value": "prod"
}
},
"environments": {
"test": {
"env": {
"MIX_ENV": "test"
}
}
},
"formation": {
"web": {
"quantity": 1,
"size": "free"
}
},
"buildpacks": [
{
"url": "https://github.com/HashNuke/heroku-buildpack-elixir.git"
}
],
"scripts": {
"postdeploy": "if [ \"${DB_MIGRATE}\" == \"true\" ]; then _build/${MIX_ENV}/rel/man_api/bin/man_api command Elixir.Man.ReleaseTasks migrate!; fi;"
},
"addons": [
{
"plan": "heroku-postgresql",
"options": {
"version": "9.5"
}
}
]
}