Roger Hu hace 9 años
padre
commit
183f379468
Se han modificado 2 ficheros con 1 adiciones y 6 borrados
  1. 0 4
      app.json
  2. 1 2
      index.js

+ 0 - 4
app.json

@@ -5,10 +5,6 @@
   "logo": "https://avatars0.githubusercontent.com/u/1294580?v=3&s=200",
   "logo": "https://avatars0.githubusercontent.com/u/1294580?v=3&s=200",
   "keywords": ["node", "express", "parse"],
   "keywords": ["node", "express", "parse"],
   "env": {
   "env": {
-    "PARSER_SERVER_URL": {
-      "description": "URL to your parse server with http:// or https://",
-      "required": true
-    },
     "PARSE_MOUNT": {
     "PARSE_MOUNT": {
       "description": "Configure Parse API route.",
       "description": "Configure Parse API route.",
       "value": "/parse"
       "value": "/parse"

+ 1 - 2
index.js

@@ -11,12 +11,11 @@ if (!databaseUri) {
 }
 }
 
 
 var api = new ParseServer({
 var api = new ParseServer({
-  serverURL: process.env.PARSE_SERVER_URL,
   databaseURI: databaseUri || 'mongodb://localhost:27017/dev',
   databaseURI: databaseUri || 'mongodb://localhost:27017/dev',
   cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js',
   cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js',
   appId: process.env.APP_ID || 'myAppId',
   appId: process.env.APP_ID || 'myAppId',
   masterKey: process.env.MASTER_KEY || '', //Add your master key here. Keep it secret!
   masterKey: process.env.MASTER_KEY || '', //Add your master key here. Keep it secret!
-  serverUrl: process.env.SERVER_URL || 'http://localhost:1337'  // Don't forget to change to https if needed
+  serverURL: process.env.SERVER_URL || 'http://localhost:1337'  // Don't forget to change to https if needed
 });
 });
 // Client-keys like the javascript key or the .NET key are not necessary with parse-server
 // Client-keys like the javascript key or the .NET key are not necessary with parse-server
 // If you wish you require them, you can set them as options in the initialization above:
 // If you wish you require them, you can set them as options in the initialization above: