Muhammad Faisal Iqbal
Muhammad Faisal Iqbal

Reputation: 1836

Parse Dashboard not working

I manually created a mongDB and deployed this parse server example example to heroku now I want use Parse dashboard for this using

parse-dashboard --appId yourAppId --masterKey yourMasterKey --serverURL "https://example.com/parse" --appName optionalName

From where can I obtain the parameters mentioned above like appId,masterKey,serverUrl and appName

After running this with default appId, masterKey and appName but heroku serverURL its runs dashboard, but on dashboard page it says "Server not reachable: unable to connect to server"

From where can I obtain the parameters mentioned above like appId,masterKey,serverUrl and appName

Why is the server unreachable??

Upvotes: 3

Views: 4902

Answers (5)

jun meng
jun meng

Reputation: 1

you need use https both parse-server and parse-dashboard. such as serverURL:"https://localhost:1337/parse" //your parse-server addr.\n in parse-dashboard serverURL:"https://110.76.187.79:1337/parse" //your parse-dashboard addr

Upvotes: 0

Durgaprasad Nagarkatte
Durgaprasad Nagarkatte

Reputation: 519

Try doing this, it worked for me

parse-dashboard --appId yourAppId --masterKey yourMasterKey --serverURL https://example.com/parse --appName optionalName

The key here is that the server URL needs to be taken out of the double quotes.

Upvotes: 2

Nidhin David
Nidhin David

Reputation: 2474

First you must run the parse-server-example by setting appId and masterKey Either you can edit the index.js file(https://github.com/ParsePlatform/parse-server-example/blob/master/index.js) and hard code the value or you can set it by using heroku env variables. read this page: https://devcenter.heroku.com/articles/config-vars

You can set it as

 heroku config:set APP_ID=yourAppId
 heroku config:set MASTER_KEY=yourMasterKey
 heroku config:set MONGODB_URI=yourMongoUriformMlab
 heroku config:set SERVER_URL=https://enigmatic-wave-36871.herokuapp.com/parse

Please refer this for more detailed info: https://devcenter.heroku.com/articles/deploying-a-parse-server-to-heroku

It can be any value that you like.

Next you have edit the parse-dashboard-config.json in 'parse-dashboard' and provide the appId and MasterKey that you gave earlier in the parse-server-example and save it and start it, you can refer this link:http://blog.parse.com/announcements/introducing-the-parse-server-dashboard/

After editing, the parse-dashboard-config.json should contain:

{
  "apps": [
    {
      "serverURL": "https://enigmatic-wave-36871.herokuapp.com/parse",
      "appId": "The appid that you gave for the parse-server-example",
      "masterKey": "The master key that you gave for parse-server-example",
      "appName": "enginamatic-wave anything you like"
    }
  ]
}

Upvotes: 1

Dan Levy
Dan Levy

Reputation: 4271

It appears that something went wrong when you configured the server. Delete the app from Heroku and follow this tutorial (instead of using Rob's server example, use the Parse server example).

Upvotes: 0

Dan Levy
Dan Levy

Reputation: 4271

In your Heroku account, go into the app that you are working on. Now, go into Settings and click on reveal config vars. Copy the keys into their respective places in the terminal code. Make sure to put the server irk in quotes as you have in your example. The serverURL should be "yourAppName.heroku.com/parse".

Upvotes: 1

Related Questions