1.3 KiB
1.3 KiB
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:
cd /path/to/multiplan
git add .
git commit -m "feat: description of change"
git push origin master
Gitea → Live:
cd /var/www/multiplan.teacuplive.com
git pull origin master
Rollback
On live server:
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:
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