more redis and resque stuff

This commit is contained in:
Dan Buch
2012-03-04 10:04:41 -05:00
parent 6fe8e8004e
commit fedeefef98
10 changed files with 35 additions and 7 deletions

View File

@@ -0,0 +1,6 @@
require 'mc-settings'
Setting.load(
:path => Rails.root,
:files => ['config/settings/default.yml']
)

View File

@@ -0,0 +1,8 @@
require 'erb'
File.open(Rails.root.join('config/redis.conf.erb'), 'r') do |f|
tmpl = ERB.new(f.read)
File.open(Rails.root.join('config/redis.conf'), 'w') do |conf|
conf.write(tmpl.result(binding))
end
end