Skip to content

Enfection DevOps Documentation

WordPress agency workflow සඳහා සම්පූර්ණ DevOps guide.


New Project Flow

CLIENT PROJECT COMES IN
  ┌─────────────┐
  │   DevOps    │  1. GitHub repo create
  │  (First!)   │  2. CloudPanel staging site + SSL
  │  ~15 mins   │  3. Permissions fix
  └──────┬──────┘  4. deploy.yml + GitHub secrets
         │         5. Pipeline test
         │ Handover (repo URL + WP credentials)
  ┌─────────────┐
  │  Developer  │  1. Git clone + staging branch
  │             │  2. DB import (Migration plugin)
  │  Daily work │  3. Theme activate + develop
  └──────┬──────┘  4. git push origin staging → auto deploy
  ┌──────────────────────────────────┐
  │  https://[client].development.   │  ✅ Staging updated!
  │  enfection.com                   │
  └──────────────────────────────────┘

Quick Reference

git add .
git commit -m "feat: your change"
git push origin staging
# ✅ Auto deploy done!
# 1. CloudPanel → Add WordPress site
# 2. GitHub → New repo + push deploy.yml
# 3. GitHub secrets add (5 secrets)
# 4. SSH → fix permissions
# 5. Handover to developer
# ~15 minutes total
github.com/enfection/[repo] → Actions tab
✅ Green = deployed to staging
❌ Red = check logs + fix

Servers

Server URL Purpose
SonarQube https://sonarqube.enfection.com Code quality
Staging Panel https://development.enfection.com:8443 CloudPanel admin
Staging Sites https://[client].development.enfection.com Client staging
Monitoring Grafana Cloud CPU/RAM/Disk metrics

Guides

For Developers

For DevOps