e4bd0ae461
- Updated build-hooks.js to remove better-sqlite3 dependency and use bun:sqlite. - Modified smart-install.js to eliminate checks and installations related to better-sqlite3. - Refactored Database.ts, SessionSearch.ts, SessionStore.ts, and migrations.ts to import and utilize bun:sqlite. - Replaced exec and pragma calls with appropriate run methods for bun:sqlite compatibility. - Removed unnecessary native module verification and installation logic for better-sqlite3.
41 lines
1.1 KiB
JavaScript
41 lines
1.1 KiB
JavaScript
/**
|
|
* PM2 Ecosystem Configuration for claude-mem Worker Service
|
|
*
|
|
* Usage:
|
|
* pm2 start ecosystem.config.cjs
|
|
* pm2 stop claude-mem-worker
|
|
* pm2 restart claude-mem-worker
|
|
* pm2 logs claude-mem-worker
|
|
* pm2 status
|
|
*/
|
|
|
|
module.exports = {
|
|
apps: [
|
|
{
|
|
name: 'claude-mem-worker',
|
|
script: 'bun ./plugin/scripts/worker-service.cjs',
|
|
// Windows: prevent visible console windows
|
|
windowsHide: true,
|
|
// INTENTIONAL: Watch mode enables auto-restart on plugin updates
|
|
//
|
|
// Why this is enabled:
|
|
// - When you run `npm run sync-marketplace` or rebuild the plugin,
|
|
// files in ~/.claude/plugins/marketplaces/thedotmack/ change
|
|
// - Watch mode detects these changes and auto-restarts the worker
|
|
// - Users get the latest code without manually running `pm2 restart`
|
|
//
|
|
// This is a feature, not a bug - it ensures users always run the
|
|
// latest version after plugin updates.
|
|
watch: true,
|
|
ignore_watch: [
|
|
'node_modules',
|
|
'logs',
|
|
'*.log',
|
|
'*.db',
|
|
'*.db-*',
|
|
'.git'
|
|
]
|
|
}
|
|
]
|
|
};
|