|
@@ -71,10 +71,9 @@ function scw(r)
|
|
if pcall(function() redis_conn:ping() end) then
|
|
if pcall(function() redis_conn:ping() end) then
|
|
has_redis = true
|
|
has_redis = true
|
|
else
|
|
else
|
|
- io.stderr:write("reconnecting to redis\n")
|
|
|
|
|
|
+ -- io.stderr:write("reconnecting to redis\n")
|
|
local redis_host = os.getenv("SCW_REDIS_HOST")
|
|
local redis_host = os.getenv("SCW_REDIS_HOST")
|
|
local redis_port = os.getenv("SCW_REDIS_PORT")
|
|
local redis_port = os.getenv("SCW_REDIS_PORT")
|
|
- io.stderr:write(string.format("redis host: %s\n", redis_host))
|
|
|
|
if pcall(function() redis_conn = redis.connect(redis_host, 6379) end) then
|
|
if pcall(function() redis_conn = redis.connect(redis_host, 6379) end) then
|
|
has_redis = true
|
|
has_redis = true
|
|
end
|
|
end
|