zhangweicheng 5 years ago
parent
commit
2792fae5b1
2 changed files with 1 additions and 1 deletions
  1. 0 1
      Dockerfile
  2. 1 0
      pm2_server.json

+ 0 - 1
Dockerfile

@@ -32,7 +32,6 @@ COPY --from=babel /home/ConstructionCost/dist /home/ConstructionCost
 COPY --from=babel /home/ConstructionCost/node_modules /home/ConstructionCost/node_modules/
 COPY public/web /home/ConstructionCost/public/web/
 
-RUN cnpm install pm2@3.3.0 -g
 
 RUN gulp build
 

+ 1 - 0
pm2_server.json

@@ -2,6 +2,7 @@
   "apps": {
       "name": "constructionimport",
       "script": "server.js",
+      "args":"--max-old-space-size=2048",
       "output": "/home/logs/out.log",
       "error": "/home/logs/err.log",
       "log_date_format": "YYYY-MM-DD HH:mm Z",