使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
frallatta
/
Google-Admin-SDK
关注
1
点赞
0
派生
0
代码
工单
0
合并请求
0
版本发布
0
百科
动态
浏览代码
Fix Port Configuration
master
Frallatta
4 年前
父节点
e97f35f474
当前提交
e4d7d88c6b
共有
2 个文件被更改
,包括
19 次插入
和
18 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+18
-17
ecosystem.config.js
+1
-1
index.js
+ 18
- 17
ecosystem.config.js
查看文件
@@ -1,19 +1,20 @@
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
- 1
index.js
查看文件
@@ -1,7 +1,7 @@
const express = require("express");
const path = require("path");
var admin = require("firebase-admin");
const port = process.env.PORT ||
3004
;
const port = process.env.PORT ||
14003
;
var dirPath = path.join(__dirname, "fcm_key");
撰写
预览
正在加载...
取消
保存