From 85abd1a48164c19257497372f67d0faaa420e34a Mon Sep 17 00:00:00 2001 From: Andrei Gliga Date: Tue, 22 Dec 2015 14:04:55 +0200 Subject: [PATCH] generate the puma.rb config file during errbit:setup capistrano task by invoking the puma:config --- config/deploy.example.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config/deploy.example.rb b/config/deploy.example.rb index b13fe5a..cbe1912 100644 --- a/config/deploy.example.rb +++ b/config/deploy.example.rb @@ -45,13 +45,14 @@ namespace :errbit do execute "touch #{shared_path}/.env" { - 'config/newrelic.example.yml' => 'config/newrelic.yml', - 'config/puma.default.rb' => 'config/puma.rb' + 'config/newrelic.example.yml' => 'config/newrelic.yml' }.each do |src, target| unless test("[ -f #{shared_path}/#{target} ]") upload! src, "#{shared_path}/#{target}" end end + + invoke 'puma:config' end end end @@ -69,4 +70,5 @@ namespace :db do end end +set :puma_conf, "#{shared_path}/config/puma.rb" set :puma_bind, 'tcp://0.0.0.0:8080' -- libgit2 0.21.2