Add shared server infrastructure documentation
Central reference for all bots: servers, sites, databases, repos, deploy commands, URLs, and migration status. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
b9f3d17f70
commit
db69fd619f
1 changed files with 101 additions and 0 deletions
101
memory/shared-servers.md
Normal file
101
memory/shared-servers.md
Normal file
|
|
@ -0,0 +1,101 @@
|
|||
# Payfrit Infrastructure — Server Map
|
||||
|
||||
## Dev Server (dev.payfrit.com)
|
||||
- **IP:** Behind WireGuard VPN (10.10.0.x)
|
||||
- **SSH:** ssh dev.payfrit.com (user: john, key-based auth, port 38291)
|
||||
- **OS:** Ubuntu
|
||||
- **Web:** nginx + PHP 8.3-FPM + Lucee/Tomcat (being migrated off)
|
||||
|
||||
### Sites on Dev Server
|
||||
| Domain | Path | Stack | Notes |
|
||||
|--------|------|-------|-------|
|
||||
| dev.payfrit.com | /var/www/payfrit-api/ | PHP 8.3 | Main Payfrit API |
|
||||
| dev.payfrit.com/food/ | /var/www/payfrit-food/ | PHP 8.3 | Payfrit Food (API + portals) |
|
||||
| god.payfrit.com | /opt/lucee/tomcat/webapps/ROOT/god.payfrit.com/ | Lucee CFML (VPN-only) | Admin/god mode dashboard |
|
||||
| git.payfrit.com | Forgejo (port 3000) | Go | Code hosting (Forgejo) |
|
||||
| mm.payfrit.com | Mattermost | Go | Team chat |
|
||||
| llm.payfrit.com | DELETED (2026-03-17) | — | Was a test LLM tool |
|
||||
|
||||
### Services on Dev Server
|
||||
| Service | Status | Notes |
|
||||
|---------|--------|-------|
|
||||
| nginx | active | Reverse proxy for all sites |
|
||||
| php8.3-fpm | active | PHP processing |
|
||||
| Lucee/Tomcat (port 8888) | active (being phased out) | Only god mode left after CFM migration |
|
||||
| forgejo | active | Git hosting at git.payfrit.com |
|
||||
| payfrit-bot-poller | active | Polls MM for bot messages, responds via Claude API |
|
||||
| payfrit-bot-worker | active | Picks BotTasks from DB, runs Claude Code CLI |
|
||||
|
||||
### Databases (10.10.0.1)
|
||||
| Database | Purpose |
|
||||
|----------|---------|
|
||||
| payfrit | Main Payfrit (prod) |
|
||||
| payfrit_dev | Main Payfrit (dev) |
|
||||
| payfrit_food | Payfrit Food project |
|
||||
- **User:** payfrit_app / Bv9#hLs4Wq@zK8nR
|
||||
- **Access:** Via VPN or from dev server localhost
|
||||
|
||||
## Prod Server (biz.payfrit.com)
|
||||
- **Purpose:** Production Payfrit ordering platform
|
||||
- **Stack:** Lucee/CFML + nginx
|
||||
- **Deploys:** scp files then ssh to copy into place
|
||||
|
||||
### Sites on Prod Server
|
||||
| Domain | Purpose |
|
||||
|--------|---------|
|
||||
| biz.payfrit.com | Payfrit ordering platform (businesses, menus, ordering) |
|
||||
| food.payfrit.com | Payfrit Food marketing site (WordPress) |
|
||||
|
||||
## Git Repos (git.payfrit.com/payfrit/)
|
||||
| Repo | Purpose | Local Path |
|
||||
|------|---------|------------|
|
||||
| payfrit-food | Food project (PHP API + portals + bot scripts) | C:\dev\payfrit-food\ |
|
||||
| payfrit-api | Main Payfrit PHP API | C:\dev\payfrit-api\ |
|
||||
| payfrit-biz | Biz portal frontend | C:\dev\payfrit-biz\ |
|
||||
| bots | Central bot memory + infrastructure | C:\dev\bots\ |
|
||||
| payfrit-user-android | Android customer app (Kotlin) | C:\dev\payfrit-android\ |
|
||||
| payfrit-works-android | Android worker app (Kotlin) | C:\dev\payfrit-works-android\ |
|
||||
| payfrit-beacon-android | Android beacon tool (Kotlin) | C:\dev\payfrit-beacon-android\ |
|
||||
| payfrit-food-ios | iOS food scanner | — (Mac) |
|
||||
| payfrit-user-ios | iOS customer app (Swift) | — (Mac) |
|
||||
| payfrit-works-ios | iOS worker app (Swift) | — (Mac) |
|
||||
| payfrit-beacon-ios | iOS beacon tool (Swift) | — (Mac) |
|
||||
| payfrit-brand | Brand assets | C:\dev\payfrit-brand\ |
|
||||
| payfrit-theme | Main WP theme | C:\dev\payfrit-theme\ |
|
||||
| payfrit-pads-theme | Pads WP theme | C:\dev\payfrit-pads-theme\ |
|
||||
| payfrit-god | God mode (admin panel) | — (on server) |
|
||||
| payfrit-help | Help desk | — |
|
||||
| payfrit-wp | WordPress config | — |
|
||||
| payfrit-work | Work/tasks module | — |
|
||||
|
||||
## Deploy Commands
|
||||
```bash
|
||||
# Payfrit Food
|
||||
git push origin main && ssh dev.payfrit.com "sudo git -C /var/www/payfrit-food pull origin main"
|
||||
|
||||
# Payfrit API
|
||||
git push origin main && ssh dev.payfrit.com "sudo git -C /var/www/payfrit-api pull origin main"
|
||||
|
||||
# Biz frontend (prod)
|
||||
scp file dev.payfrit.com:/tmp/ && ssh dev.payfrit.com "sudo cp /tmp/file /var/www/biz.payfrit.com/file"
|
||||
|
||||
# Bots repo
|
||||
git push origin main && ssh dev.payfrit.com "sudo git -C /var/www/bots pull origin main"
|
||||
```
|
||||
|
||||
## Key URLs
|
||||
| URL | Purpose |
|
||||
|-----|---------|
|
||||
| https://dev.payfrit.com | Dev main site |
|
||||
| https://dev.payfrit.com/food/ | Dev food portal |
|
||||
| https://biz.payfrit.com | Prod ordering |
|
||||
| https://food.payfrit.com | Food marketing (WP) |
|
||||
| https://god.payfrit.com | Admin dashboard (VPN-only) |
|
||||
| https://git.payfrit.com | Forgejo git hosting |
|
||||
| https://mm.payfrit.com | Mattermost team chat |
|
||||
|
||||
## Migration Status (2026-03-17)
|
||||
- llm.payfrit.com: DELETED
|
||||
- 6 CFM API endpoints: being migrated to PHP by @mike
|
||||
- god.payfrit.com: staying on Lucee for now (VPN-only, low priority)
|
||||
- Goal: shut down Lucee once CFM endpoints are migrated
|
||||
Loading…
Add table
Reference in a new issue