You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

21 lines
553 B

module.exports = {
apps: [
{
name: 'vue3-admin',
script: 'vue3-admin-server.js'
},
],
deploy: {
production: {
user: 'root',
host: '47.99.134.126',
ref: 'origin/main',
repo: 'git@git.zhlh6.cn:newbee-ltd/vue3-admin.git',
path: '/workspace/vue3-admin',
'post-deploy': 'git reset --hard && git checkout main && git pull && npm i --production=false && pm2 startOrReload ecosystem.config.js', // -production=false 下载全量包
env: {
NODE_ENV: 'production'
}
}
}
}