redisapp icon indicating copy to clipboard operation
redisapp copied to clipboard

Redisapp cannot read conf file, only use the default configuration!

Open listlike opened this issue 8 years ago • 3 comments

Can join statement here ? "../redis.conf " self.task.arguments = [ "--dir", self.dataPath, "--logfile", "\(self.logPath)/redis.log"]

listlike avatar Jan 21 '17 13:01 listlike

`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"]`

listlike avatar Jan 21 '17 20:01 listlike

Writing to a file in an app bundle doesn't seem to be a good practice.

eonil avatar Apr 30 '18 15:04 eonil