diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2017-11-05 19:58:51 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2017-11-05 19:58:51 +0100 |
| commit | f50cdac9b0fe1bf361cd5b421438de26ab559de9 (patch) | |
| tree | 9c6ceb0bb1bd1b222a5241d35294d8ab797445a3 /index.js | |
| parent | 0f8f6b47bfbc16b98b63e5851c928709cb2825f8 (diff) | |
| parent | 56bda209771121cf8081ab822a9cb11e0149f752 (diff) | |
Merge branch 'cms' of ghghgh.us:stone-island into cms
Diffstat (limited to 'index.js')
| -rw-r--r-- | index.js | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -2,6 +2,8 @@ var okcms = require('okcms') var assign = require('object-assign') var path = require('path') +var port = process.env.PORT || 1337 + var app = okcms.createApp({ meta: { @@ -85,8 +87,10 @@ var app = okcms.createApp({ push: { lib: require("./lib/okpush"), + // mongodbUrl: "mongodb://localhost/okpush_stone" + '_dev', + // production: false, mongodbUrl: "mongodb://localhost/okpush_stone", - production: false, + 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"), @@ -95,10 +99,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", @@ -117,6 +121,7 @@ var app = okcms.createApp({ }, } -}).listen(1337) +}).listen(port) + +console.log('Server listening at port ' + port + '...'); -console.log('Server listening at port 1337...'); |
