Skip to content

Commit

Permalink
Fix Puma config for newer Puma and Honeybadger
Browse files Browse the repository at this point in the history
  • Loading branch information
gaffneyc committed Jan 16, 2025
1 parent 689b4bc commit 1857452
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 6 additions & 2 deletions config.ru
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ Bundler.require

use Rack::SslEnforcer if ENV["RACK_ENV"] == "production"

Honeybadger.exception_filter do |notice|
notice[:exception].class < Sinatra::NotFound
Honeybadger.configure do |config|
config.before_notify do |notice|
if notice.exception.class < Sinatra::NotFound
notice.halt!
end
end
end

require "./no_phone"
Expand Down
1 change: 0 additions & 1 deletion config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@

preload_app!

rackup DefaultRackup
port ENV["PORT"] || 3000
environment ENV["RACK_ENV"] || "development"

0 comments on commit 1857452

Please sign in to comment.