bin/tokenizer-server in opener-tokenizer-1.0.0 vs bin/tokenizer-server in opener-tokenizer-1.0.1

- old
+ new

@@ -1,10 +1,8 @@ #!/usr/bin/env ruby -require 'rack' +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