From 6add1fce8f6ec98ce273ba05b2f56df4b5cae878 Mon Sep 17 00:00:00 2001 From: jules Date: Fri, 19 May 2017 11:50:44 +0000 Subject: push notifications working!! --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'index.js') diff --git a/index.js b/index.js index 339b802..aa8c643 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,8 @@ var okcms = require('okcms') var path = require('path') -var isProduction = process.env.OK_PRODUCTION === 'true' var viewConfig = { template: 'index', +var isProduction = process.env.OK_PRODUCTION === 'true' +var viewConfig = { template: 'index', data: [ {type: 'timeline', query: '*'}, {type: 'page', query: '*'}, @@ -114,7 +115,7 @@ var app = okcms.createApp({ push: { lib: require("./lib/okpush"), mongodbUrl: "mongodb://localhost/okpush_hga", - production: true, + production: false, apn_development: { cert: path.join(__dirname, "./lib/okpush/certs/aps_development_cert.pem"), key: path.join(__dirname, "./lib/okpush/certs/aps_development_key.pem"), -- cgit v1.2.3-70-g09d2