upgrade package

This commit is contained in:
yi-ge 2021-08-04 17:01:23 +08:00
parent bc6327c556
commit 6e9a818d10
3 changed files with 5 additions and 5 deletions

View File

@ -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', // 启用多少个实例,可用于负载均衡

View File

@ -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',

View File

@ -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"
}
}
}