File tree Expand file tree Collapse file tree 4 files changed +17
-3
lines changed Expand file tree Collapse file tree 4 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ option_settings:
5
5
MASTER_KEY: "ReplaceWithMasterKey"
6
6
DATABASE_URI: "ReplaceWithDatabaseURI"
7
7
NODE_ENV: "production"
8
-
8
+ SERVER_URL: "http://myappname.elasticbeanstalk.com/parse"
9
9
aws:elasticbeanstalk:container:nodejs:
10
10
NodeCommand: "npm start"
Original file line number Diff line number Diff line change 16
16
"MASTER_KEY" : {
17
17
"description" : " A key that overrides all permissions. Keep this secret." ,
18
18
"value" : " myMasterKey"
19
+ },
20
+ "SERVER_URL" : {
21
+ "description" : " URL of your Heroku instance" ,
22
+ "value" : " http://myapp.herokuapp.com/parse"
19
23
}
20
24
},
21
25
"image" : " heroku/nodejs" ,
Original file line number Diff line number Diff line change 44
44
"minLength" : 1 ,
45
45
"defaultValue" : " myMasterKey"
46
46
},
47
+ "parseServerUrl" : {
48
+ "type" : " string" ,
49
+ "minLength" : 1 ,
50
+ "defaultValue" : " http://yourappname.azure.com/parse"
51
+ },
47
52
"repoURL" : {
48
53
"type" : " string" ,
49
54
"defaultValue" : " https://github.com/parseplatform/parse-server-example.git" ,
109
114
"name" : " MASTER_KEY" ,
110
115
"value" : " [parameters('parseMasterKey')]"
111
116
},
117
+ {
118
+ "name" : " SERVER_URL" ,
119
+ "value" : " [parameters('parseServerUrl')]"
120
+ },
112
121
{
113
122
"name" : " WEBSITE_NODE_DEFAULT_VERSION" ,
114
123
"value" : " 4.2.3"
132
141
]
133
142
}
134
143
]
135
- }
144
+ }
Original file line number Diff line number Diff line change @@ -14,7 +14,8 @@ var api = new ParseServer({
14
14
databaseURI : databaseUri || 'mongodb://localhost:27017/dev' ,
15
15
cloud : process . env . CLOUD_CODE_MAIN || __dirname + '/cloud/main.js' ,
16
16
appId : process . env . APP_ID || 'myAppId' ,
17
- masterKey : process . env . MASTER_KEY || '' //Add your master key here. Keep it secret!
17
+ masterKey : process . env . MASTER_KEY || '' , //Add your master key here. Keep it secret!
18
+ serverUrl : process . env . SERVER_URL || 'http://localhost:1337' // Don't forget to change to https if needed
18
19
} ) ;
19
20
// Client-keys like the javascript key or the .NET key are not necessary with parse-server
20
21
// If you wish you require them, you can set them as options in the initialization above:
You can’t perform that action at this time.
0 commit comments