diff options
Diffstat (limited to 'index.js')
| -rw-r--r-- | index.js | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -86,8 +86,10 @@ var app = okcms.createApp({ push: { lib: require("./lib/okpush"), - mongodbUrl: "mongodb://localhost/okpush_stone" + '_dev', - production: false, + // mongodbUrl: "mongodb://localhost/okpush_stone" + '_dev', + // production: false, + mongodbUrl: "mongodb://localhost/okpush_stone", + production: true, apn_development: { cert: path.join(__dirname, "./lib/okpush/certs/aps_development_cert.pem"), key: path.join(__dirname, "./lib/okpush/certs/aps_development_key.pem"), @@ -96,10 +98,10 @@ var app = okcms.createApp({ } }, apn_production: { - // cert: path.join(__dirname, "./lib/okpush/certs/aps_production_cert.pem"), - // key: path.join(__dirname, "./lib/okpush/certs/aps_production_key.pem"), + cert: path.join(__dirname, "./lib/okpush/certs/aps_production_cert.pem"), + key: path.join(__dirname, "./lib/okpush/certs/aps_production_key.pem"), connection: { - // gateway: "gateway.push.apple.com", + gateway: "gateway.push.apple.com", } }, bundleId: "us.okfoc.stoneisland", @@ -121,3 +123,4 @@ var app = okcms.createApp({ }).listen(port) console.log('Server listening at port ' + port + '...'); + |
