Skip to content

Commit

Permalink
set deploy[:rails_env] in case of non-rails app
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah Blumenthal committed Dec 7, 2014
1 parent 97af227 commit 77a5dfa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recipes/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
Chef::Log.info("Configuring resque for application #{application}")

settings = node[:resque][application]
# configure rails_env in case of non-rails app
deploy[:rails_env] ||= settings[:rails_env]
settings[:workers].each do |queue, quantity|

quantity.times do |idx|
Expand Down

0 comments on commit 77a5dfa

Please sign in to comment.