mirror of
https://github.com/cmur2/openvpn-status-web.git
synced 2024-12-22 02:54:23 +01:00
gems: update rack to version 3.0.0
This commit is contained in:
parent
1e0444a71d
commit
117f70e2e3
@ -7,6 +7,7 @@ require 'logger'
|
||||
require 'ipaddr'
|
||||
require 'yaml'
|
||||
require 'rack'
|
||||
require 'rackup'
|
||||
require 'erb'
|
||||
require 'metriks'
|
||||
require 'better_errors' if ENV.fetch('RACK_ENV', nil) == 'development'
|
||||
@ -135,14 +136,14 @@ module OpenVPNStatusWeb
|
||||
|
||||
Signal.trap('INT') do
|
||||
OpenVPNStatusWeb.logger.info 'Quitting...'
|
||||
Rack::Handler::WEBrick.shutdown
|
||||
Rackup::Handler::WEBrick.shutdown
|
||||
end
|
||||
Signal.trap('TERM') do
|
||||
OpenVPNStatusWeb.logger.info 'Quitting...'
|
||||
Rack::Handler::WEBrick.shutdown
|
||||
Rackup::Handler::WEBrick.shutdown
|
||||
end
|
||||
|
||||
Rack::Handler::WEBrick.run app, Host: config['host'], Port: config['port']
|
||||
Rackup::Handler::WEBrick.run app, Host: config['host'], Port: config['port']
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -27,7 +27,8 @@ Gem::Specification.new do |s|
|
||||
s.required_ruby_version = '>= 2.7'
|
||||
|
||||
s.add_runtime_dependency 'metriks'
|
||||
s.add_runtime_dependency 'rack', '~> 2.0'
|
||||
s.add_runtime_dependency 'rack', '~> 3.0'
|
||||
s.add_runtime_dependency 'rackup'
|
||||
s.add_runtime_dependency 'webrick', '>= 1.6.1'
|
||||
|
||||
s.add_development_dependency 'better_errors'
|
||||
|
Loading…
Reference in New Issue
Block a user