Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Feat: CI Workflow Enhancement & Deployment Integration with PM2 #205

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

Programmer-RD-AI
Copy link
Contributor

Purpose

This PR introduces enhancements to the CI workflow by integrating PM2 for process management and deployment automation. It also refactors the workflow to improve maintainability and efficiency.

Goals

  • Improve the CI/CD pipeline by introducing a structured build-and-deploy job.
  • Automate database migrations and seeding within the CI process.
  • Enable PM2 process management for seamless application deployment.

Approach

  • Updated GitHub Actions CI workflow (.github/workflows/CI.yml) to:
    • Add PM2-based deployment and restart.
    • Introduce database migration steps before deployment.
    • Ensure ESLint checks run properly before building the project.
  • Added ecosystem.config.js for PM2 configuration, enabling efficient process management and auto-restart.
  • Updated package.json scripts to support PM2 commands for easy process handling (pm2:start, pm2:reload, pm2:stop).
  • Included TODO placeholders for deployment configurations, allowing customization for different environments.

Checklist

  • Ensured no sensitive credentials are committed.
  • Verified CI/CD pipeline runs successfully.
  • Implemented best practices for process management using PM2.
  • Added database migration and seeding as part of the workflow.

Test Environment

  • OS: Ubuntu Latest
  • Node.js: v20
  • Database: PostgreSQL

This update ensures a stable, automated deployment process, reducing downtime and improving overall efficiency. 🚀

@Programmer-RD-AI Programmer-RD-AI marked this pull request as draft February 8, 2025 06:38
@Programmer-RD-AI Programmer-RD-AI marked this pull request as ready for review February 12, 2025 05:21
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant