move logger, path and redis ruby code here