-
Notifications
You must be signed in to change notification settings - Fork 349
Expand file tree
/
Copy pathapp.json
More file actions
72 lines (72 loc) · 2.6 KB
/
app.json
File metadata and controls
72 lines (72 loc) · 2.6 KB
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
70
71
72
{
"name": "DreamFactory",
"description": "Code Automation for Generating APIs - DreamFactory is an API generation solution that automatically generates secure and documented APIs for databases",
"keywords": [
"api",
"rest",
"database",
"php",
"laravel",
"dreamfactory"
],
"website": "https://dreamfactory.com/",
"repository": "https://github.com/dreamfactorysoftware/dreamfactory",
"logo": "https://raw.githubusercontent.com/dreamfactorysoftware/dreamfactory/master/readme/vertical-logo-fullcolor.png",
"success_url": "/",
"stack": "heroku-22",
"scripts": {
"postdeploy": "echo \"DATABASE_URL: $DATABASE_URL\" && if [ -n \"$DATABASE_URL\" ]; then DB_USER=$(echo $DATABASE_URL | sed 's|postgres://\\([^:]*\\):.*|\\1|'); DB_PASS=$(echo $DATABASE_URL | sed 's|postgres://[^:]*:\\([^@]*\\)@.*|\\1|'); DB_HOST=$(echo $DATABASE_URL | sed 's|postgres://[^@]*@\\([^:]*\\):.*|\\1|'); DB_PORT=$(echo $DATABASE_URL | sed 's|.*:\\([0-9]*\\)/.*|\\1|'); DB_NAME=$(echo $DATABASE_URL | sed 's|.*/\\([^?]*\\).*|\\1|'); export DB_HOST=$DB_HOST DB_PORT=$DB_PORT DB_DATABASE=$DB_NAME DB_USERNAME=$DB_USER DB_PASSWORD=$DB_PASS; echo \"Parsed: HOST=$DB_HOST PORT=$DB_PORT DB=$DB_NAME USER=$DB_USER\"; else echo \"No DATABASE_URL found\"; fi && php artisan config:clear && php artisan migrate --force"
},
"env": {
"APP_DEBUG": {
"description": "Enable Laravel debug mode for development",
"value": "false",
"required": false
},
"APP_KEY": {
"description": "Laravel application encryption key",
"generator": "secret",
"required": true
},
"DB_CONNECTION": {
"description": "Database connection type",
"value": "pgsql",
"required": true
},
"DB_DATABASE": {
"description": "Database name (will be automatically set from PostgreSQL addon)",
"required": false
},
"DB_HOST": {
"description": "Database host (will be automatically set from PostgreSQL addon)",
"required": false
},
"DB_PASSWORD": {
"description": "Database password (will be automatically set from PostgreSQL addon)",
"required": false
},
"DB_PORT": {
"description": "Database port",
"value": "5432",
"required": false
},
"DB_USERNAME": {
"description": "Database username (will be automatically set from PostgreSQL addon)",
"required": false
}
},
"formation": {
"web": {
"size": "Standard-1X",
"quantity": 1
}
},
"addons": [
"heroku-postgresql:essential-0"
],
"buildpacks": [
{
"url": "https://github.com/heroku/heroku-buildpack-php"
}
]
}