summaryrefslogtreecommitdiff
path: root/recipes/worker.rb
blob: 2609bb67642e2e175c40374cfa9f80553d882663 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
include_recipe "stronglifters::redis"
include_recipe "stronglifters::rails"

current_path = "#{node["stronglifters"]["root_path"]}/current"
runit_service "sidekiq" do
  action [:enable, :start]
  default_logger true
  env node["stronglifters"]["env"]
  log true
  log_size 1_000_000
  log_num 31
  retries 3
end if File.exists?("#{current_path}/Gemfile")