浏览代码

Replaced Kadira by meteor-apm-agent

Gavin Lilly 6 年之前
父节点
当前提交
905c45f225
共有 3 个文件被更改,包括 6 次插入11 次删除
  1. 1 1
      .meteor/packages
  2. 5 5
      docker-compose.yml
  3. 0 5
      server/kadira.js

+ 1 - 1
.meteor/packages

@@ -90,4 +90,4 @@ wekan:wekan-ldap
 wekan:accounts-cas
 wekan:accounts-cas
 wekan-scrollbar
 wekan-scrollbar
 mquandalle:perfect-scrollbar
 mquandalle:perfect-scrollbar
-meteorhacks:kadira
+mdg:meteor-apm-agent

+ 5 - 5
docker-compose.yml

@@ -123,7 +123,7 @@ services:
     # image: wekanteam/wekan:v1.95
     # image: wekanteam/wekan:v1.95
     #-------------------------------------------------------------------------------------
     #-------------------------------------------------------------------------------------
     container_name: wekan-app
     container_name: wekan-app
-    restart: always
+    restart: "no"
     networks:
     networks:
       - wekan-tier
       - wekan-tier
     #-------------------------------------------------------------------------------------
     #-------------------------------------------------------------------------------------
@@ -148,7 +148,7 @@ services:
       # remove port mapping if you use nginx reverse proxy, port 8080 is already exposed to wekan-tier network
       # remove port mapping if you use nginx reverse proxy, port 8080 is already exposed to wekan-tier network
       - 3000:8080
       - 3000:8080
     environment:
     environment:
-      - MONGO_URL=mongodb://wekandb:27017/wekan?replicaSet=kadira
+      - MONGO_URL=mongodb://wekandb:27017/wekan
       #---------------------------------------------------------------
       #---------------------------------------------------------------
       # ==== ROOT_URL SETTING ====
       # ==== ROOT_URL SETTING ====
       # Change ROOT_URL to your real Wekan URL, for example:
       # Change ROOT_URL to your real Wekan URL, for example:
@@ -193,9 +193,9 @@ services:
       # ==== OPTIONAL: KADIRA PERFORMANCE MONITORING FOR METEOR ====
       # ==== OPTIONAL: KADIRA PERFORMANCE MONITORING FOR METEOR ====
       # https://github.com/smeijer/kadira
       # https://github.com/smeijer/kadira
       # https://blog.meteor.com/kadira-apm-is-now-open-source-490469ffc85f
       # https://blog.meteor.com/kadira-apm-is-now-open-source-490469ffc85f
-      - KADIRA_OPTIONS_ENDPOINT=http://kadira-engine:11011
-      - KADIRA_APP_ID=iYpPgq6rXRrZJty4A 
-      - KADIRA_APP_SECRET=9de2728b-320d-46c1-9352-0084435411f0
+      - APM_OPTIONS_ENDPOINT=http://kadira-engine:11011
+      - APM_APP_ID=iYpPgq6rXRrZJty4A 
+      - APM_APP_SECRET=9de2728b-320d-46c1-9352-0084435411f0
       #---------------------------------------------------------------
       #---------------------------------------------------------------
       # ==== OPTIONAL: LOGS AND STATS ====
       # ==== OPTIONAL: LOGS AND STATS ====
       # https://github.com/wekan/wekan/wiki/Logs
       # https://github.com/wekan/wekan/wiki/Logs

+ 0 - 5
server/kadira.js

@@ -1,5 +0,0 @@
-Meteor.startup(() => {
-  const appId = process.env.KADIRA_APP_ID;
-  const appSecret = process.env.KADIRA_APP_SECRET;
-  Kadira.connect(appId, appSecret);
-});