Files
labplus-server/pm2.config.cjs

18 lines
446 B
JavaScript
Raw Permalink Normal View History

2024-01-15 00:32:02 +08:00
module.exports = {
apps: [{
name: "labplus-server",
script: "./src/index.js",
watch: [
"src"
],
ignore_watch: [
"node_modules"
],
env: {
2024-01-15 00:35:31 +08:00
"NODE_ENV": "production",
"PORT": 80,
2024-08-11 21:47:44 +08:00
// TODO: change to your own username and password
"DATABASE_URI": "mongodb://USERNAME:PASSWORD@localhost:27017/labplus",
2024-01-15 00:32:02 +08:00
}
}]
}