Updates README, makes serverURL required

- prints help when misconfigured
- prints missing appId, masterKey, serverURL
This commit is contained in:
Florent Vilmart
2016-02-23 21:33:36 -05:00
parent 30aafd2c62
commit 81f5c682d4
5 changed files with 53 additions and 12 deletions

View File

@@ -11,7 +11,8 @@ module.exports = {
},
"serverURL": {
env: "PARSE_SERVER_URL",
help: "URL to your parse server with http:// or https://"
help: "URL to your parse server with http:// or https://",
required: true
},
"databaseURI": {
env: "PARSE_SERVER_DATABASE_URI",
@@ -65,7 +66,7 @@ module.exports = {
},
"enableAnonymousUsers": {
env: "PARSE_SERVER_ENABLE_ANON_USERS",
help: "Enable (or disable) anon users, enabled by default",
help: "Enable (or disable) anon users, defaults to true",
action: function(opt) {
if (opt == "true" || opt == "1") {
return true;
@@ -75,7 +76,8 @@ module.exports = {
},
"mountPath": {
env: "PARSE_SERVER_MOUNT_PATH",
help: "Mount path for the server, defaults to /"
help: "Mount path for the server, defaults to /parse",
default: "/parse"
},
"databaseAdapter": {
env: "PARSE_SERVER_DATABASE_ADAPTER",