From 3d582e2cdc29c5f45075cf1159b660ce0a19e955 Mon Sep 17 00:00:00 2001 From: zouhairkhallaf Date: Sat, 17 Jun 2017 02:24:36 -0400 Subject: [PATCH 1/3] addded the server variables --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 568d6e51f1..da73354eb8 100644 --- a/index.js +++ b/index.js @@ -14,12 +14,12 @@ var api = new ParseServer({ databaseURI: databaseUri || 'mongodb://localhost:27017/dev', cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js', - serverURL: process.env.SERVER_URL || 'http://localhost:1337/parse', // Don't forget to change to https if needed + serverURL: process.env.SERVER_URL || 'https://my-parse-server-codecraft-ex.herokuapp.com/', // Don't forget to change to https if needed //**** Security Settings ****// // allowClientClassCreation: process.env.CLIENT_CLASS_CREATION || false, appId: process.env.APP_ID || 'myAppId', - masterKey: process.env.MASTER_KEY || 'myMasterKey', //Add your master key here. Keep it secret! + masterKey: process.env.MASTER_KEY || 'myMasterKey', //Add your master key here. Keep it secret! //**** Live Query ****// // liveQuery: { From 238f1a0ee5282bd1f5b6235309eca9cba4c9d5d7 Mon Sep 17 00:00:00 2001 From: zouhairkhallaf Date: Sat, 17 Jun 2017 03:19:40 -0400 Subject: [PATCH 2/3] updated the user name and pass to connect to Mongodb --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index da73354eb8..df201356c7 100644 --- a/index.js +++ b/index.js @@ -12,7 +12,7 @@ if (!databaseUri) { var api = new ParseServer({ //**** General Settings ****// - databaseURI: databaseUri || 'mongodb://localhost:27017/dev', + databaseURI: databaseUri || 'mongodb://zouhairkhallaf:Zouzou#007@ds125262.mlab.com:25262/heroku_hnp8pl7f', cloud: process.env.CLOUD_CODE_MAIN || __dirname + '/cloud/main.js', serverURL: process.env.SERVER_URL || 'https://my-parse-server-codecraft-ex.herokuapp.com/', // Don't forget to change to https if needed From 9240545dced4c614b1bd3bf49d392404aecae78b Mon Sep 17 00:00:00 2001 From: zouhairkhallaf Date: Sat, 17 Jun 2017 03:43:51 -0400 Subject: [PATCH 3/3] Updated a missing field --- app.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.json b/app.json index 022859b272..e019005a87 100644 --- a/app.json +++ b/app.json @@ -19,7 +19,7 @@ }, "SERVER_URL": { "description": "URL to connect to your Heroku instance (update with your app's name + PARSE_MOUNT)", - "value": "http://yourappname.herokuapp.com/parse" + "value": "https://my-parse-server-codecraft-ex.herokuapp.com" } }, "image": "heroku/nodejs",