Skip to content

Commit b34e7f5

Browse files
author
Matt Creager
committed
support additional config via env vars and button
1 parent 7f55859 commit b34e7f5

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

app.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@
88
"PARSE_MOUNT": {
99
"description": "Configure Parse API route.",
1010
"value": "/parse"
11+
},
12+
"APP_ID": {
13+
"description": "A unique identifier for your app.",
14+
"value": "myAppId"
15+
},
16+
"MASTER_KEY": {
17+
"description": "A key that overrides all permissions. Keep this secret.",
18+
"value": "myMasterKey"
1119
}
1220
},
1321
"image": "heroku/nodejs",

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ if (!databaseUri) {
1414
var api = new ParseServer({
1515
databaseURI: databaseUri || 'mongodb://localhost:27017/dev',
1616
cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js',
17-
appId: 'myAppId',
18-
masterKey: 'myMasterKey'
17+
appId: process.env.APP_ID || 'myAppId',
18+
masterKey: process.env.MASTER_KEY || 'myMasterKey'
1919
});
2020
// Client-keys like the javascript key or the .NET key are not necessary with parse-server
2121
// If you wish you require them, you can set them as options in the initialization above:

0 commit comments

Comments
 (0)