AppDever
AppDever

Reputation: 707

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   } 

Upvotes: 2

Views: 936

Answers (1)

Jayson
Jayson

Reputation: 538

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

Upvotes: 0

Related Questions