Skip to content

Commit

Permalink
Wait for Redis
Browse files Browse the repository at this point in the history
Apparently, Redis hasn't started yet:

  `cat: /home/runner/work/_temp/tmp.SoM8AlsFey/redis.pid: No such file or directory`
  • Loading branch information
fidel committed Jan 2, 2025
1 parent 8cc93be commit 9d68f5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions support/nix/redis.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ mkShell {
--daemonize yes \
--pidfile $PIDFILE
while [ ! -f $PIDFILE ]; do
sleep 0.1
done
export REDIS_URL="unix://$SOCKET"
pushtrap "kill -9 $(cat $PIDFILE);rm -rf $TMP" EXIT
Expand Down

0 comments on commit 9d68f5e

Please sign in to comment.