feat(devtools): add memory-service & tool-engine management, fix .gitignore
- Add memory-service and tool-engine to devtools config (ports, env, healthUrl) - Add GOWORK=off to process-manager build for Go workspace compatibility - Update DB check and startup order to include new services - Add backend/tool-engine/main to .gitignore for Go binary
This commit is contained in:
@@ -67,6 +67,35 @@ export const SERVICES = {
|
||||
buildArgs: ['build', '-o', 'main', './cmd/main.go'],
|
||||
goBin: '/usr/local/go/bin/go',
|
||||
},
|
||||
'memory-service': {
|
||||
name: '记忆服务',
|
||||
cwd: path.join(ROOT, 'backend/memory-service'),
|
||||
command: './main',
|
||||
env: {
|
||||
PORT: '8091',
|
||||
DB_URL: process.env.DB_URL || 'postgres://cyrene:change_me@localhost:5432/cyrene_ai?sslmode=disable',
|
||||
},
|
||||
healthUrl: 'http://localhost:8091/api/v1/health',
|
||||
port: 8091,
|
||||
buildCommand: 'go',
|
||||
buildArgs: ['build', '-o', 'main', './cmd/main.go'],
|
||||
goBin: '/usr/local/go/bin/go',
|
||||
},
|
||||
'tool-engine': {
|
||||
name: '工具引擎',
|
||||
cwd: path.join(ROOT, 'backend/tool-engine'),
|
||||
command: './main',
|
||||
env: {
|
||||
PORT: '8092',
|
||||
DB_URL: process.env.DB_URL || 'postgres://cyrene:change_me@localhost:5432/cyrene_ai?sslmode=disable',
|
||||
IOT_SERVICE_URL: process.env.IOT_DEBUG_SERVICE_URL || 'http://localhost:8083',
|
||||
},
|
||||
healthUrl: 'http://localhost:8092/api/v1/health',
|
||||
port: 8092,
|
||||
buildCommand: 'go',
|
||||
buildArgs: ['build', '-o', 'main', './cmd/main.go'],
|
||||
goBin: '/usr/local/go/bin/go',
|
||||
},
|
||||
'voice-service': {
|
||||
name: '语音识别服务',
|
||||
cwd: path.join(ROOT, 'backend/voice-service'),
|
||||
|
||||
Reference in New Issue
Block a user