fix: update worker port environment variable and shutdown API endpoint in smart-install script
This commit is contained in:
@@ -446,11 +446,11 @@ try {
|
|||||||
console.error('✅ Dependencies installed');
|
console.error('✅ Dependencies installed');
|
||||||
|
|
||||||
// Auto-restart worker to pick up new code
|
// Auto-restart worker to pick up new code
|
||||||
const port = process.env.CLAUDE_MEM_PORT || 37777;
|
const port = process.env.CLAUDE_MEM_WORKER_PORT || 37777;
|
||||||
console.error(`[claude-mem] Plugin updated to v${newVersion} - restarting worker...`);
|
console.error(`[claude-mem] Plugin updated to v${newVersion} - restarting worker...`);
|
||||||
try {
|
try {
|
||||||
// Graceful shutdown via HTTP (curl is cross-platform enough)
|
// Graceful shutdown via HTTP (curl is cross-platform enough)
|
||||||
execSync(`curl -s -X POST http://127.0.0.1:${port}/api/shutdown`, {
|
execSync(`curl -s -X POST http://127.0.0.1:${port}/api/admin/shutdown`, {
|
||||||
stdio: 'ignore',
|
stdio: 'ignore',
|
||||||
shell: IS_WINDOWS,
|
shell: IS_WINDOWS,
|
||||||
timeout: 5000
|
timeout: 5000
|
||||||
|
|||||||
Reference in New Issue
Block a user