File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 5
5
"logo" : " https://avatars0.githubusercontent.com/u/1294580?v=3&s=200" ,
6
6
"keywords" : [" node" , " express" , " parse" ],
7
7
"env" : {
8
+ "PARSER_SERVER_URL" : {
9
+ "description" : " URL to your parse server with http:// or https://" ,
10
+ "required" : true
11
+ },
8
12
"PARSE_MOUNT" : {
9
13
"description" : " Configure Parse API route." ,
10
14
"value" : " /parse"
Original file line number Diff line number Diff line change 4
4
var express = require ( 'express' ) ;
5
5
var ParseServer = require ( 'parse-server' ) . ParseServer ;
6
6
7
- var databaseUri = process . env . DATABASE_URI || process . env . MONGOLAB_URI
7
+ var databaseUri = process . env . DATABASE_URI || process . env . MONGOLAB_URI ;
8
8
9
9
if ( ! databaseUri ) {
10
10
console . log ( 'DATABASE_URI not specified, falling back to localhost.' ) ;
11
11
}
12
12
13
13
var api = new ParseServer ( {
14
+ serverURL : process . env . PARSE_SERVER_URL ,
14
15
databaseURI : databaseUri || 'mongodb://localhost:27017/dev' ,
15
16
cloud : process . env . CLOUD_CODE_MAIN || __dirname + '/cloud/main.js' ,
16
17
appId : process . env . APP_ID || 'myAppId' ,
You can’t perform that action at this time.
0 commit comments