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

current_path = "#{node["stronglifters"]["root_path"]}/current"
runit_service "puma" 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")