'Parse Dashboard configuration error "Your config file contains invalid JSON. Exiting."

I am trying to install Parse Dashboard on AWS. The public directory works but the /apps directory is blank.

When looking at the logs I see

> [email protected] start /var/app/current
> node ./Parse-Dashboard/index.js

Your config file contains invalid JSON. Exiting.

I am deploying the parse-dashboard from github. And I have entered in the values in the parse-dashboard-config.json that match the keys on parse.com.

This is the JSON that I am using

{
  "apps": [
    {
     "serverURL": "xxxxxxxxxxxxxxxxxxxxxxx/parse",
     "appId": "xxxxxxxxxxxxxxxxxxxxxxxxxxx",
     "masterKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
     "appName": "xxxxxxxxxxxxxx"
     }
    ],
   "iconsFolder": "icons"
}

In index.js the log is being generated by

129   if (error instanceof SyntaxError) {
130      console.log('Your config file contains invalid JSON. Exiting.');
131      process.exit(1);
132   } 


Solution 1:[1]

For anyone who's looking for an answer, the parse-dashboard-config.json file should be in the your current folder where you're running

parse-dashboard --config parse-dashboard-config.json

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jayson