Add PM2 deployment pipeline via SSH by SmitVgithub · Pull Request #3 · SmitVgithub/ibm · GitHub
Skip to content

Add PM2 deployment pipeline via SSH - #3

Open
SmitVgithub wants to merge 1 commit into
masterfrom
devops-agent-1772368984497
Open

Add PM2 deployment pipeline via SSH#3
SmitVgithub wants to merge 1 commit into
masterfrom
devops-agent-1772368984497

Conversation

@SmitVgithub

Copy link
Copy Markdown
Owner

🤖 DevOps Agent - Automated Configuration

Summary

Creating a simple GitHub Actions workflow that will SSH into your server and deploy the application using PM2. Also adding a PM2 ecosystem config file for better process management.

Analysis

User wants a simple GitHub Actions pipeline to deploy their Node.js application to a server using PM2. SSH credentials (key, IP, username) will be stored in GitHub secrets, and PM2 is already installed on the server. This is a static/simple Node.js project based on the package.json.

Files Created

  • .github/workflows/deploy.yml
  • ecosystem.config.js

Required Secrets

  • SSH_HOST: Server IP address or hostname
  • SSH_USERNAME: SSH username for server access
  • SSH_PRIVATE_KEY: Private SSH key for authentication (full key content)

Next Steps

  1. Add SSH_HOST secret in GitHub repo settings (Settings → Secrets → Actions)
  2. Add SSH_USERNAME secret with your server username
  3. Add SSH_PRIVATE_KEY secret with your private SSH key content
  4. Update ecosystem.config.js with your actual app entry point if different
  5. Merge the PR to trigger the deployment pipeline

⚠️ Please review all files before merging.

Generated by DevOps Agent

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