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:
nasir@endelospay.com
2025-08-22 01:06:24 +05:00
parent f4ca680532
commit 08f094b12f
12 changed files with 3 additions and 1103 deletions

View File

@@ -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"',