[Rails] migrate 發生 redis error
有時候在 Rails 執行 migrate 時,會遇到 redis 的錯誤
MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk
解法:
1.進 redis cli,下指令
$ redis-cli
> config set stop-writes-on-bgsave-error no
2.重開 redis service
macOS (brew):
brew services restart redis
Linux:
service redis restart
or
systemctl restart redis
Ref: