From 77a5dfa68656ddd3d2b41b91fcafd32879e5ccd4 Mon Sep 17 00:00:00 2001 From: Noah Blumenthal Date: Sun, 7 Dec 2014 00:01:22 -0500 Subject: [PATCH] set deploy[:rails_env] in case of non-rails app --- recipes/setup.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes/setup.rb b/recipes/setup.rb index ff1980c..9915bdb 100644 --- a/recipes/setup.rb +++ b/recipes/setup.rb @@ -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|