environment "RAILS_ENV" => "production", "QUEUE" => "%I"
user "rails"
working_directory rails_directory
- exec_start "#{node[:ruby][:bundle]} exec rake jobs:work"
+ exec_start "#{node[:ruby][:bundle]} exec rails jobs:work"
restart "on-failure"
private_tmp true
private_devices true
mode "755"
end
-gem_package "apachelogregex"
-gem_package "file-tail"
+gem_package "apachelogregex" do
+ gem_binary node[:ruby][:gem]
+end
+
+gem_package "file-tail" do
+ gem_binary node[:ruby][:gem]
+end
template "/usr/local/bin/api-statistics" do
source "api-statistics.erb"
subscribes :restart, "systemd_service[api-statistics]"
end
-gem_package "hpricot"
+gem_package "hpricot" do
+ gem_binary node[:ruby][:gem]
+end
munin_plugin "api_calls_status"
munin_plugin "api_calls_num"