Commit 85abd1a48164c19257497372f67d0faaa420e34a

Authored by Andrei Gliga
1 parent be5f99a3
Exists in master

generate the puma.rb config file during errbit:setup capistrano task by invoking the puma:config

Showing 1 changed file with 4 additions and 2 deletions   Show diff stats
config/deploy.example.rb
... ... @@ -45,13 +45,14 @@ namespace :errbit do
45 45 execute "touch #{shared_path}/.env"
46 46  
47 47 {
48   - 'config/newrelic.example.yml' => 'config/newrelic.yml',
49   - 'config/puma.default.rb' => 'config/puma.rb'
  48 + 'config/newrelic.example.yml' => 'config/newrelic.yml'
50 49 }.each do |src, target|
51 50 unless test("[ -f #{shared_path}/#{target} ]")
52 51 upload! src, "#{shared_path}/#{target}"
53 52 end
54 53 end
  54 +
  55 + invoke 'puma:config'
55 56 end
56 57 end
57 58 end
... ... @@ -69,4 +70,5 @@ namespace :db do
69 70 end
70 71 end
71 72  
  73 +set :puma_conf, "#{shared_path}/config/puma.rb"
72 74 set :puma_bind, 'tcp://0.0.0.0:8080'
... ...