| @@ -1,19 +1,20 @@ | |||||
| module.exports = { | module.exports = { | ||||
| apps : [{ | |||||
| name: 'FCM-SDK-Admin', | |||||
| script: 'index.js', | |||||
| exec_mode: 'cluster', | |||||
| instances: "1", | |||||
| watch: true, | |||||
| time:true, | |||||
| env: { | |||||
| "PORT": 3004, | |||||
| "NODE_ENV": "development", | |||||
| }, | |||||
| env_production : { | |||||
| "PORT": 3004, | |||||
| "NODE_ENV": "production" | |||||
| } | |||||
| }] | |||||
| apps: [ | |||||
| { | |||||
| name: "FCM-SDK-Admin", | |||||
| script: "index.js", | |||||
| exec_mode: "cluster", | |||||
| instances: "1", | |||||
| watch: true, | |||||
| time: true, | |||||
| env: { | |||||
| PORT: 14003, | |||||
| NODE_ENV: "development", | |||||
| }, | |||||
| env_production: { | |||||
| PORT: 14003, | |||||
| NODE_ENV: "production", | |||||
| }, | |||||
| }, | |||||
| ], | |||||
| }; | }; | ||||
| @@ -1,7 +1,7 @@ | |||||
| const express = require("express"); | const express = require("express"); | ||||
| const path = require("path"); | const path = require("path"); | ||||
| var admin = require("firebase-admin"); | var admin = require("firebase-admin"); | ||||
| const port = process.env.PORT || 3004; | |||||
| const port = process.env.PORT || 14003; | |||||
| var dirPath = path.join(__dirname, "fcm_key"); | var dirPath = path.join(__dirname, "fcm_key"); | ||||