Skip to content

Commit

Permalink
Support rackup 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alpaca-tc committed Apr 1, 2024
1 parent b0bf161 commit 84e58f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions exe/diver_down_web
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

require 'bundler/setup'
require 'webrick'
require 'rackup'
require 'diver_down'
require 'diver_down-web'

Expand All @@ -14,7 +13,7 @@ begin
require 'rack'
require 'rack/server'
Rack::Server.new(app:).start
rescue NameError
rescue LoadError
# Rack 3.0
require 'rackup'
Rackup::Server.new(app:).start
Expand Down

0 comments on commit 84e58f8

Please sign in to comment.