user1470265
user1470265

Reputation: 143

Parse server 'released in production' / environment

I've just transferred an existing Parse server to my self hosted Digital Ocean droplet. Unfortunately, I cannot get the sending push messages part working. I still remember that in the old Parse.com, we had an option to release the app in production. But I cannot find that attribute anymore.

Is there any way to set the parse server environment to "production" in my config or so?

Cheers, Vincent

Upvotes: 0

Views: 203

Answers (2)

IftekharDani
IftekharDani

Reputation: 3729

Use below config to parse server.

    var api = new ParseServer({
  databaseURI: 'databaseUrl',
  cloud: __dirname + '/cloud/main.js',
  appId: 'your app id',
  masterKey: 'master key',
  serverURL:'Server url', 
    push : {
        ios: {
            cert: 'ios certificate url',
            bundleId: 'Your bundle id',
            production: true
      }
    }
});

Upvotes: 1

Cliffordwh
Cliffordwh

Reputation: 1430

You can set that in your parse-server config!

{ "ios": [ { "pfx": "/home/parse/file/ApplePushServices.p12", "bundleId": "yourApp", "production": true } ] }

Upvotes: 1

Related Questions