Merge pull request 'bind nix-shell's redis to localhost' (#23) from redis/nixshell-redis-bindlocal into redis/connection-pool

Reviewed-on: #23
pull/26/head
Inex Code 2022-11-30 17:52:29 +02:00
commit f0132266e9
1 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,8 @@ pkgs.mkShell {
# envs set with export and as attributes are treated differently.
# for example. printenv <Name> will not fetch the value of an attribute.
export USE_REDIS_PORT=6379
redis-server --port $USE_REDIS_PORT >/dev/null &
pkill redis-server
redis-server --bind 127.0.0.1 --port $USE_REDIS_PORT >/dev/null &
# maybe set more env-vars
'';
}