refactor sidekiq namespace
This commit is contained in:
parent
dd7f235e04
commit
c436abb34a
|
@ -13,6 +13,10 @@ SECRET_TOKEN: 'e4122773d4324fce978c52cde790d84d14f7194f377aea41b7b8302d1d10150e6
|
||||||
#locale: en or zh-CN, zh-CN is default value
|
#locale: en or zh-CN, zh-CN is default value
|
||||||
LOCALE: 'zh-CN'
|
LOCALE: 'zh-CN'
|
||||||
|
|
||||||
|
# sidekiq redis namespace, if you configure two blog in on VPS, you should change it.
|
||||||
|
# default is wblog
|
||||||
|
REDIS_NAMESPACE: 'wblog'
|
||||||
|
|
||||||
# META description for SEO
|
# META description for SEO
|
||||||
INTRODUCE: '这是李亚飞的博客, 李亚飞是暂住在深圳的一名 Ruby 程序员, 这里是关于技术, 创业, 生活的思考'
|
INTRODUCE: '这是李亚飞的博客, 李亚飞是暂住在深圳的一名 Ruby 程序员, 这里是关于技术, 创业, 生活的思考'
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
Sidekiq.configure_server do |config|
|
Sidekiq.configure_server do |config|
|
||||||
config.redis = { :namespace => 'wblog' }
|
config.redis = { :namespace => ENV['REDIS_NAMESPACE'] }
|
||||||
end
|
end
|
||||||
|
|
||||||
Sidekiq.configure_client do |config|
|
Sidekiq.configure_client do |config|
|
||||||
config.redis = { :namespace => 'wblog' }
|
config.redis = { :namespace => ENV['REDIS_NAMESPACE']}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue