Files

52 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

# Operations
## Change config and deploy
```bash
cd /root/lakehouse
# Edit config/homepage/*.yaml or rss-proxy/server.py
git add -A && git commit -m "description" && git push origin master
# Reload homepage
docker exec homepage wget -qO- http://127.0.0.1:3000/api/revalidate
# Rebuild RSS proxy
docker compose -f deploy/docker-compose.homepage.yml build rss-proxy
docker compose -f deploy/docker-compose.homepage.yml up -d rss-proxy
```
## Logs
```bash
docker logs -f homepage
docker logs -f rss-proxy
docker logs -f superset
```
Application logs are outside git: `config/homepage/logs/` (see `.gitignore`).
## Refresh container inventory
```bash
./scripts/deploy/export-inventory.sh
git add inventory/ && git commit -m "chore: refresh container inventory"
```
## Restart full docker01 stack
```bash
./scripts/deploy/deploy-atc-docker01.sh
```
## SSH between hosts
```bash
ssh -i /root/.ssh/atc_cluster root@atc-lake01
```
See [ssh-mesh.md](ssh-mesh.md).
## Git on the server
Clone lives at `/root/lakehouse` on `atc-docker01`. Use your Forgejo credentials to push to `atc-mgt01`.