init: ai-prompts repo with project briefings and onboarding prompts
This commit is contained in:
70
multiplan/deployment-pipeline.md
Normal file
70
multiplan/deployment-pipeline.md
Normal file
@@ -0,0 +1,70 @@
|
||||
# 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
|
||||
```
|
||||
Reference in New Issue
Block a user