colinox/FED-Notes

Nuxt使用pm2启动配置

Opened this issue · 0 comments

Nuxt使用pm2启动配置

"scripts": {
    "dev": "cross-env NODE_ENV=development nodemon server/index.js --watch server",
    "build": "nuxt build",
    "open": "nuxt build && pm2 start npm --name 'SanjiekeNuxt' -- run start",
    "reload": "nuxt build && pm2 reload SanjiekeNuxt",
    "start": "PORT=3002 nuxt start",
    "generate": "nuxt generate"
}