Files
ai-prompts/multiplan/deployment-pipeline.md

71 lines
1.3 KiB
Markdown
Raw Permalink Normal View History

# Multiplan — Git Deployment Pipeline Briefing
## Project
Multiplan is a PHP ERP system. Git replaced rsync for deployments.
## Architecture
```
[Dev Server] --push--> [Gitea: g.pozi.co.za] <--pull-- [Live Server]
```
## Repo Details
| Item | Value |
|------|-------|
| Repo | gadmin/multiplan |
| Visibility | Private |
| Branch | master |
| SSH URL | git@g.pozi.co.za:gadmin/multiplan.git |
| HTTPS URL | https://g.pozi.co.za/gadmin/multiplan.git |
## SSH Keys Registered
| Key Name | Server |
|----------|--------|
| MultiplanServerLive | Live server |
| dev@multiplan | Dev server |
## Deployment Flow
**Dev → Gitea:**
```bash
cd /path/to/multiplan
git add .
git commit -m "feat: description of change"
git push origin master
```
**Gitea → Live:**
```bash
cd /var/www/multiplan.teacuplive.com
git pull origin master
```
## Rollback
**On live server:**
```bash
cd /var/www/multiplan.teacuplive.com
git log --oneline # see all deploy points
git reset --hard <hash> # revert to any point instantly
```
**On dev server:**
```bash
git revert <hash> # safely undo a commit
git push origin master # push revert to Gitea
# Then on live: git pull origin master
```
## Live Server SSH Config
```
Host g.pozi.co.za
HostName g.pozi.co.za
User git
Port 2222
IdentityFile ~/.ssh/id_gitea
```