Skip to content

Commit

Permalink
add more instruction for the redis deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
lwaekfjlk authored Apr 14, 2024
1 parent 211460b commit 47bf042
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/all_the_issues.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ sudo docker run -d -e REDIS_ARGS="--requirepass QzmCUD3C3RdsR" --name redis-stac
```

Redis saves snapshots of the database every few minutes. You can find them in the corresponding folder (for example, `\data\dump.rdb`). Use the `sudo docker cp <container_id>:/data/dump.rdb /tmp` to obtain the snapshot from the container (in this case, the copied data is stored in `/tmp/snap-private-tmp/snap.docker/tmp`).

When utilizing the database in python (as introduced in `https://github.com/sotopia-lab/sotopia/blob/main/notebooks/redis_stats.ipynb`), make sure you use `export REDIS_OM_URL="redis://:QzmCUD3C3RdsR@localhost:6379"` instead of `os.environ['REDIS_OM_URL'] = "redis://:QzmCUD3C3RdsR@localhost:6379"` in the file since we need to set a global environment variable that works in `redis_om`.

0 comments on commit 47bf042

Please sign in to comment.