mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
init for redis proxy db
This commit is contained in:
parent
e7d03ce613
commit
6798d31e0f
1 changed files with 6 additions and 0 deletions
|
@ -73,6 +73,12 @@ end
|
||||||
|
|
||||||
$redis_cache = Redis::Namespace.new :cache, redis: $redis
|
$redis_cache = Redis::Namespace.new :cache, redis: $redis
|
||||||
|
|
||||||
|
if ENV['RACK_ENV'] == 'test'
|
||||||
|
$redis_proxy = MockRedis.new
|
||||||
|
else
|
||||||
|
$redis_proxy = Redis.new url: $config['redis_proxy']
|
||||||
|
end
|
||||||
|
|
||||||
# :nocov:
|
# :nocov:
|
||||||
if ENV['RACK_ENV'] == 'development'
|
if ENV['RACK_ENV'] == 'development'
|
||||||
# Run async jobs immediately in development.
|
# Run async jobs immediately in development.
|
||||||
|
|
Loading…
Add table
Reference in a new issue