bin/ned-server in opener-ned-2.1.0 vs bin/ned-server in opener-ned-2.2.0
- old
+ new
@@ -1,10 +1,8 @@
#!/usr/bin/env ruby
-require_relative '../lib/opener/ned/server'
+require 'puma/cli'
-# Without calling `Rack::Server#options` manually the CLI arguments will never
-# be passed, thus the application can't be specified as a constructor argument.
-server = Rack::Server.new
-server.options[:config] = File.expand_path('../../config.ru', __FILE__)
+rack_config = File.expand_path('../../config.ru', __FILE__)
-server.start
+cli = Puma::CLI.new([rack_config] + ARGV)
+cli.run