upgrade package
This commit is contained in:
parent
bc6327c556
commit
6e9a818d10
@ -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', // 启用多少个实例,可用于负载均衡
|
||||
|
@ -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',
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user