Commit b1deb97
Changed files (3)
recipes/rails.rb
@@ -32,16 +32,3 @@ production:
url: <%= ENV['DATABASE_URL'] %>
YAML
end
-
-gem "foreman"
-
-runit_service "foreman" do
- action [:enable, :start]
- default_logger true
- env node["stronglifters"]["env"]
- log true
- log_size 1_000_000
- log_num 31
- retries 3
- #only_if { ::File.exists?("#{File.join(root_path, "current")}/Procfile") }
-end if File.exists?("#{File.join(root_path, "current")}/Procfile")
templates/sv-foreman-run.erb
@@ -1,7 +0,0 @@
-#!/bin/bash
-exec 2>&1
-source /etc/profile.d/rbenv.sh
-envdir=$(pwd)/env
-user=<%= node['stronglifters']['username'] %>
-cd <%= node['stronglifters']['root_path'] %>/current
-exec chpst -u $user -e $envdir foreman start
test/integration/web/serverspec/default_spec.rb
@@ -8,8 +8,4 @@ describe "web" do
expect(port(80)).to be_listening
expect(port(443)).to be_listening
end
-
- it 'installs foreman' do
- expect(file("/usr/local/rbenv/shims/foreman")).to be_file
- end
end