persona-brain-db: package.json + ecosystem.config.js for PM2部署
This commit is contained in:
parent
0fc92f0d32
commit
7aacb703d6
@ -0,0 +1,13 @@
|
|||||||
|
module.exports = {
|
||||||
|
apps: [{
|
||||||
|
name: 'persona-brain-db',
|
||||||
|
script: 'api/server.js',
|
||||||
|
cwd: '/opt/zhuyuan/persona-brain-db',
|
||||||
|
env: {
|
||||||
|
BRAIN_API_PORT: 3914,
|
||||||
|
NODE_ENV: 'production'
|
||||||
|
},
|
||||||
|
autorestart: true,
|
||||||
|
max_memory_restart: '200M'
|
||||||
|
}]
|
||||||
|
};
|
||||||
@ -0,0 +1,13 @@
|
|||||||
|
{
|
||||||
|
"name": "persona-brain-db",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "光湖人格体数据库 · 大桌子小桌子记忆引擎",
|
||||||
|
"main": "api/server.js",
|
||||||
|
"scripts": {
|
||||||
|
"start": "node api/server.js"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"express": "^4.21.0",
|
||||||
|
"better-sqlite3": "^11.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user