From d1cacea29e6101171dfe3f6876d1048d3f21363e Mon Sep 17 00:00:00 2001 From: Serge Bornow Date: Thu, 15 Sep 2016 21:17:41 -0400 Subject: [PATCH] Parse Server allows for a custom mount path As per CLI , this mount path should not be hard coded, it can be anything --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 472be98..0b2f897 100644 --- a/index.js +++ b/index.js @@ -23,7 +23,7 @@ module.exports = (siteRoot, options) => { appId: process.env.APP_ID || 'appId', masterKey: process.env.MASTER_KEY || 'masterKey', databaseURI: process.env.DATABASE_URI || 'mongodb://localhost:27017/dev', - serverURL: (process.env.SERVER_URL || 'http://localhost:1337') + '/parse', + serverURL: (process.env.SERVER_URL || 'http://localhost:1337') + (process.env.PARSE_SERVER_MOUNT_PATH || '/parse'), cloud: siteRoot + '/cloud/main.js', logFolder: siteRoot + '/logs', filesAdapter: () => {