refactor: clean up remote server and improve PM2 configuration
- Remove all test files from remote server directory for cleaner production deployment - Update PM2 ecosystem.config.js to use npm run start:server for automatic building - Remove redundant pre_start build step since start:server handles building
This commit is contained in:
@@ -2,7 +2,8 @@ module.exports = {
|
||||
apps: [
|
||||
{
|
||||
name: 'mcp-remote-server',
|
||||
script: 'dist/index.js',
|
||||
script: 'npm',
|
||||
args: 'run start:server',
|
||||
cwd: __dirname,
|
||||
instances: 1,
|
||||
autorestart: true,
|
||||
@@ -48,8 +49,7 @@ module.exports = {
|
||||
// Environment-specific overrides
|
||||
merge_logs: true,
|
||||
|
||||
// Custom startup script (optional)
|
||||
pre_start: 'npm run build',
|
||||
// Build is handled by start:server script
|
||||
|
||||
// Post-deployment hooks (optional)
|
||||
post_start: 'echo "MCP Remote Server started successfully"',
|
||||
|
Reference in New Issue
Block a user