node-redis-server
node-redis-server copied to clipboard
Open-promise never resolved if .conf file contains logfile
Hi.
We tried to use the redis-server package to start a local redis instance configured by a .conf file.
We can successfully start an instance if we don't specify any logfile in the .conf file. But when it's specified redis is started and creates a logfile as expected but the open-promise is never resolved.
We attached the .conf-file which is causing the issue and hope that you can clarify the issue for us.
Best regards Sebastian and Martin redis.conf.txt
Thanks for the report. I'll have a look.
Specifying a log file makes Redis write messages to that file; redis-server
expects those messages to come from stdout.
If there's a way to get these things to work together, I'd like to explore that solution. If there isn't, I suppose we'll need to parse the configuration file for a logfile
statement and then tail the given file instead of stdout.
A possible workaround which worked for my use case:
const server = new RedisServer({
port: 6379,
conf: ''
});