do not break on not updated application.yml for mount_resque_web
This commit is contained in:
parent
55999bc443
commit
fcff5a6774
2 changed files with 2 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ if AppConfig.single_process_mode?
|
|||
end
|
||||
end
|
||||
|
||||
if AppConfig.mount_resque_web
|
||||
if AppConfig[:mount_resque_web}
|
||||
require 'resque/server'
|
||||
|
||||
class AdminRack
|
||||
|
|
|
|||
|
|
@ -161,7 +161,7 @@ Diaspora::Application.routes.draw do
|
|||
get 'protocol' => redirect("https://github.com/diaspora/diaspora/wiki/Diaspora%27s-federation-protocol")
|
||||
|
||||
# Resque web
|
||||
if AppConfig.mount_resque_web
|
||||
if AppConfig[:mount_resque_web]
|
||||
mount Resque::Server.new, :at => '/resque-jobs'
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue