redisapp
redisapp copied to clipboard
Redisapp cannot read conf file, only use the default configuration!
Can join statement here ? "../redis.conf "
self.task.arguments = [ "--dir", self.dataPath, "--logfile", "\(self.logPath)/redis.log"]
`var confPath = "" if let path = Bundle.main.path(forResource: "redis", ofType: "conf", inDirectory: "Vendor/redis/") { confPath = path }
print("->" + confPath)
// + "../redis.conf" ??
self.task.arguments = [ confPath,"--dir", self.dataPath, "--logfile", "\(self.logPath)/redis.log"]`
Writing to a file in an app bundle doesn't seem to be a good practice.