Commit 85abd1a48164c19257497372f67d0faaa420e34a
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,13 +45,14 @@ namespace :errbit do | ||
| 45 | execute "touch #{shared_path}/.env" | 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 | }.each do |src, target| | 49 | }.each do |src, target| |
| 51 | unless test("[ -f #{shared_path}/#{target} ]") | 50 | unless test("[ -f #{shared_path}/#{target} ]") |
| 52 | upload! src, "#{shared_path}/#{target}" | 51 | upload! src, "#{shared_path}/#{target}" |
| 53 | end | 52 | end |
| 54 | end | 53 | end |
| 54 | + | ||
| 55 | + invoke 'puma:config' | ||
| 55 | end | 56 | end |
| 56 | end | 57 | end |
| 57 | end | 58 | end |
| @@ -69,4 +70,5 @@ namespace :db do | @@ -69,4 +70,5 @@ namespace :db do | ||
| 69 | end | 70 | end |
| 70 | end | 71 | end |
| 71 | 72 | ||
| 73 | +set :puma_conf, "#{shared_path}/config/puma.rb" | ||
| 72 | set :puma_bind, 'tcp://0.0.0.0:8080' | 74 | set :puma_bind, 'tcp://0.0.0.0:8080' |