From 6e9a818d10e7ef770594fbe1b4fae7ddc3753396 Mon Sep 17 00:00:00 2001 From: yi-ge Date: Wed, 4 Aug 2021 17:01:23 +0800 Subject: [PATCH] upgrade package --- ecosystem.config.js | 4 ++-- nuxt.config.js | 2 +- package.json | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ecosystem.config.js b/ecosystem.config.js index dec6dd5..6860e46 100644 --- a/ecosystem.config.js +++ b/ecosystem.config.js @@ -1,13 +1,13 @@ module.exports = { apps: [{ name: 'blog-client', - script: './dist/app.js', + script: './server/index.js', watch: false, max_memory_restart: '3G', // 超过多大内存自动重启,仅防止内存泄露有意义,需要根据自己的业务设置 env: { NODE_ENV: 'production', HOST: '0.0.0.0', - PORT: 65534 + PORT: 8080 }, exec_mode: 'cluster', // 开启多线程模式,用于负载均衡 instances: 'max', // 启用多少个实例,可用于负载均衡 diff --git a/nuxt.config.js b/nuxt.config.js index 8606da2..fbde463 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -2,7 +2,7 @@ const pkg = require('./package') const DevBaseUrl = 'http://127.0.0.1:65534' const ProdBashUrl = 'https://api.wyr.me' -const ProdServerBashUrl = 'http://blog-service:65534' +const ProdServerBashUrl = 'http://127.0.0.1:65534' module.exports = { mode: 'universal', diff --git a/package.json b/package.json index d83ee59..057e5d9 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "scripts": { "dev": "cross-env NODE_ENV=development nodemon server/index.js --watch server", "build": "nuxt build", - "start": "cross-env NODE_ENV=production HOST=0.0.0.0 PORT=3000 node server/index.js", + "start": "cross-env NODE_ENV=production HOST=0.0.0.0 PORT=8080 node server/index.js", "generate": "nuxt generate", "lint": "eslint --ext .js,.vue --ignore-path .gitignore --ignore-path .eslintignore .", "precommit": "npm run lint" @@ -52,4 +52,4 @@ "stylus": "^0.54.8", "stylus-loader": "3.0.2" } -} +} \ No newline at end of file