Page MenuHomePhabricator

[nix] Launch `redis-server` from `REDIS_CACHE_DIR`
ClosedPublic

Authored by atul on Mar 8 2023, 1:27 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 21, 9:38 AM
Unknown Object (File)
Feb 23 2024, 10:58 AM
Unknown Object (File)
Feb 23 2024, 9:44 AM
Unknown Object (File)
Feb 23 2024, 8:54 AM
Unknown Object (File)
Feb 23 2024, 5:28 AM
Unknown Object (File)
Feb 21 2024, 4:08 AM
Unknown Object (File)
Feb 21 2024, 2:48 AM
Unknown Object (File)
Feb 21 2024, 2:48 AM

Details

Reviewers
jon
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rCOMM8587565aae95: [nix] Launch `redis-server` from `REDIS_CACHE_DIR`
Summary

Redis will persist application files (eg dump.rdp) to disk from wherever it was launched. We're currently launching from the root of the repo, so I'm constantly getting a dump.rdp in my git working copy which is annoying (as would everyone else if they were actually using Redis/MariaDB via Nix...).

Instead we're cding to $REDIS_CACHE_DIR before launching Redis, so dump.rdp will live there and outside of the root of the repo.

Test Plan

dump.rdp appearing in $REDIS_CACHE_DIR instead of /comm after making this change + killing Redis:

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Owners added a reviewer: Restricted Owners Package.Mar 8 2023, 1:27 PM
atul published this revision for review.Mar 8 2023, 1:28 PM
This revision is now accepted and ready to land.Mar 8 2023, 1:38 PM

Lol, I've added dump.rdb to .git/info/exclude to workaround this. Glad that you fixed this