Skip to content

Commit c226987

Browse files
committed
persist logs to disk
1 parent 067dd6f commit c226987

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

compose.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ services:
3333
- ./src:/app/src
3434
env_file:
3535
- .env
36+
logging:
37+
driver: k8s-file
38+
options:
39+
path: /logs/expasygpt_podman.log
40+
max_size: 10mb
41+
rotate: 10
3642

3743
# mcp-server:
3844
# build: ./src/expasy-mcp

deploy.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919

2020
# NOTE: if OOM error, check `dmsg` on server and search for `oom`
21+
# sudo -u podman bash -c 'journalctl -k'
2122

2223
ssh_cmd() {
2324
ssh -t expasychat "sudo -u podman bash -c 'cd /var/containers/podman/sparql-llm ; XDG_RUNTIME_DIR=/run/user/1001 $1'"

0 commit comments

Comments
 (0)