add cline docs
This commit is contained in:
100
docs/handovers/2026-03-07-cicd-deploy-working.md
Normal file
100
docs/handovers/2026-03-07-cicd-deploy-working.md
Normal file
@@ -0,0 +1,100 @@
|
||||
# Handover – 2026-03-07 – CI/CD Deploy Working
|
||||
|
||||
## Status
|
||||
|
||||
The Plesk Agency Portal deployment pipeline is now working end‑to‑end.
|
||||
|
||||
### Jenkins Pipeline
|
||||
|
||||
Pipeline successfully performs:
|
||||
|
||||
1. Build Next.js application
|
||||
2. Build Docker image
|
||||
3. Save image archive
|
||||
4. Transfer archive to app host
|
||||
5. Load image on remote server
|
||||
6. Recreate container
|
||||
7. Run smoke test
|
||||
|
||||
Example deployed image:
|
||||
|
||||
plesk-agency-portal:build-62
|
||||
|
||||
Verification command:
|
||||
|
||||
docker inspect plesk-agency-portal --format '{{.Image}} {{.Created}}'
|
||||
|
||||
---
|
||||
|
||||
## Infrastructure
|
||||
|
||||
### Jenkins Host
|
||||
|
||||
Responsibilities:
|
||||
|
||||
- Build Docker images
|
||||
- Execute CI/CD pipeline
|
||||
- Transfer deployment artifacts
|
||||
|
||||
### Application Host
|
||||
|
||||
Deployment path:
|
||||
|
||||
/opt/plesk-agency-portal
|
||||
|
||||
Container:
|
||||
|
||||
plesk-agency-portal
|
||||
|
||||
Application port:
|
||||
|
||||
3000
|
||||
|
||||
---
|
||||
|
||||
## Reverse Proxy
|
||||
|
||||
Managed using:
|
||||
|
||||
Nginx Proxy Manager
|
||||
|
||||
Public domain:
|
||||
|
||||
https://portal.rdbcloud.co.uk
|
||||
|
||||
---
|
||||
|
||||
## Known Issue
|
||||
|
||||
Supabase authentication blocked due to mixed content.
|
||||
|
||||
Frontend attempts:
|
||||
|
||||
http://192.168.68.52:54321
|
||||
|
||||
while the site runs via HTTPS.
|
||||
|
||||
---
|
||||
|
||||
## Next Task
|
||||
|
||||
Expose Supabase API through HTTPS:
|
||||
|
||||
https://supabase.rdbcloud.co.uk
|
||||
|
||||
Then update environment variables:
|
||||
|
||||
NEXT_PUBLIC_SUPABASE_URL
|
||||
SUPABASE_URL
|
||||
|
||||
and redeploy the application.
|
||||
|
||||
---
|
||||
|
||||
## Deployment Strategy
|
||||
|
||||
Docker registry intentionally avoided.
|
||||
|
||||
Images transferred using:
|
||||
|
||||
docker save → scp → docker load
|
||||
Reference in New Issue
Block a user