diff --git a/app/models/site.rb b/app/models/site.rb index 45a5eff53..13a1cee6f 100644 --- a/app/models/site.rb +++ b/app/models/site.rb @@ -29,7 +29,7 @@ class Site mount_uploader :default_image, ImageUploader field :search,:type => Hash - + field :resque_namespace,:type => String, :default=>APP_CONFIG['orbit'] field :title, localize: true field :footer, localize: true field :sub_menu, localize: true diff --git a/config/initializers/resque.rb b/config/initializers/resque.rb index bd7a91fe5..f16c6fa4f 100644 --- a/config/initializers/resque.rb +++ b/config/initializers/resque.rb @@ -3,7 +3,7 @@ require 'resque_scheduler/server' # require 'yaml' Resque.redis = 'localhost:6379' -Resque.redis.namespace = "resque" +Resque.redis.namespace = Site.first.resque_namespace rescue APP_CONFIG['orbit'] # If you want to be able to dynamically change the schedule, # uncomment this line. A dynamic schedule can be updated via the