Skip to content

feat: add PM2 ecosystem production deploy config#475

Open
gatewaybuddy wants to merge 1 commit into
mainfrom
feat/pm2-ecosystem-deploy-config
Open

feat: add PM2 ecosystem production deploy config#475
gatewaybuddy wants to merge 1 commit into
mainfrom
feat/pm2-ecosystem-deploy-config

Conversation

@gatewaybuddy

Copy link
Copy Markdown
Owner

Summary

  • Add deploy.production section to ecosystem.config.cjs with PM2 remote deployment settings
  • Settings driven by environment variables (DEPLOY_USER, DEPLOY_HOST, DEPLOY_PATH) for flexibility across environments
  • Includes post-deploy hook to run npm ci --production and restart via PM2

Test plan

  • Verify pm2 deploy ecosystem.config.cjs production setup initializes remote directory structure
  • Verify pm2 deploy ecosystem.config.cjs production deploys and restarts cleanly
  • Confirm env vars override defaults correctly

🤖 Generated with Claude Code

Add deploy section with host, repo, path, and post-deploy hooks
for PM2 remote deployment. Settings are environment-variable
driven (DEPLOY_USER, DEPLOY_HOST, DEPLOY_PATH) for flexibility.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant