docs: Update for unified SvelteKit + FastAPI architecture. Added autonomous SvelteKit build process and updated cheatsheet commands.
This commit is contained in:
@@ -1,26 +1,25 @@
|
||||
# Aether Docker Cheat Sheet 🚀
|
||||
|
||||
## 🚀 Deployment & Updates
|
||||
- **Full Rebuild (Fast):** `docker compose up -d --build`
|
||||
- **Rebuild SvelteKit UI:** `docker compose up -d --build ae_app`
|
||||
- **Restart API (Pick up Python changes):** `docker compose restart ae_api`
|
||||
- **Switch Build Mode:** Edit `.env` -> `AE_APP_BUILD_MODE=prod` -> `docker compose up -d --build ae_app`
|
||||
|
||||
## 🛠️ Management Links
|
||||
- **Dashboard:** [http://localhost:8888](http://localhost:8888)
|
||||
- **Logs (Dozzle):** [http://localhost:8881](http://localhost:8881)
|
||||
- **SvelteKit Frontend:** [http://localhost:3001](http://localhost:3001)
|
||||
- **FastAPI Documentation:** [https://dev-api.oneskyit.com/docs](https://dev-api.oneskyit.com/docs)
|
||||
- **Database (phpMyAdmin):** [http://localhost:8081](http://localhost:8081)
|
||||
- **API Docs:** [https://dev-api.oneskyit.com/docs](https://dev-api.oneskyit.com/docs)
|
||||
- **Logs (Dozzle):** [http://localhost:8881](http://localhost:8881)
|
||||
|
||||
## 💾 Database Operations
|
||||
- **Manual Backup:** `./backup_db.sh` (Hot backup, live container)
|
||||
- **Manual Restore:** `./restore_db.sh [path_to_file.gz]` (Automated password/grant reset)
|
||||
- **Conference Export:** `./export_db.sh` (Saves to `backups/conference_export/`)
|
||||
- **Automated Onsite Import:**
|
||||
1. Drop a backup into `backups/import/`.
|
||||
2. Run `./check_and_import.sh`.
|
||||
3. The file will be restored and moved to `backups/imported/`.
|
||||
- **Automated Import:** Drop file in `backups/import/` -> Run `./check_and_import.sh`.
|
||||
|
||||
## ⏰ Scheduling
|
||||
To backup every hour at 55 minutes past:
|
||||
`55 * * * * /home/scott/OSIT_dev/aether_container_env/backup_db.sh`
|
||||
|
||||
## 📈 Scaling the API
|
||||
1. Edit `.env` -> `AE_API_REPLICAS=X`
|
||||
## 📈 Scaling
|
||||
1. Edit `.env` -> `AE_API_REPLICAS=X` (or `AE_APP_REPLICAS=X`)
|
||||
2. Run `docker compose up -d`
|
||||
|
||||
## 🧹 Maintenance
|
||||
|
||||
Reference in New Issue
Block a user