npm install pm2 -g
[ecosystem.config.js]
module.exports = {
apps: [
{
name: 'app-name',
script: './node_modules/nuxt/bin/nuxt.mjs',
args: 'dev --dotenv config/.env.dev --port 3003'
}
]
}
>pm2 start
>pm2 ps
[jenkins script after build]
call pm2 stop app-name
call npm install
call xcopy "src" "target" /e /k /y
call pm2 restart app-name
'Dev-Vue.js' 카테고리의 다른 글
vue3-treeview filtered tree (0) | 2024.07.31 |
---|---|
vue3 nuxt3 jenkins nginx windows 배포 (0) | 2023.09.08 |
vuejs's nuxt baseURL for base app path likely nginx route context path (0) | 2023.09.06 |