express 项目
"scripts": {
"seed": "ts-node prisma/seed.ts",
"start": "ts-node src/index.ts",
"dev": "nodemon --watch 'src/**/*.ts' --exec 'ts-node' src/index.ts",
"build": "tsc",
"test": "jest",
"seed": "ts-node prisma/seed.ts"
},
需要使用pm2使服务永久的运行在Linux 后台
pm2 start npm -- run start