bin/mkitd in mkit-0.4.1 vs bin/mkitd in mkit-0.4.2

- old
+ new

@@ -8,27 +8,25 @@ def up require 'sinatra' require 'sinatra/base' require 'mkit' # defaults - PARAMS_CONFIG[:bind] ||= "localhost" + PARAMS_CONFIG[:bind] ||= 'localhost' PARAMS_CONFIG[:port] ||= 4567 - # MKIt.startup(options: PARAMS_CONFIG) use Rack::MethodOverride use ServicesController use MkitJobsController + use MkitController # sinatra::base ignores in parameters # set it here or via configure... - Sinatra::Application.run!({port: PARAMS_CONFIG[:port], bind: PARAMS_CONFIG[:bind] }) + Sinatra::Application.run!({ port: PARAMS_CONFIG[:port], bind: PARAMS_CONFIG[:bind] }) # MKIt::Server.run end - -# if ARGV.any? require 'optparse' parser = OptionParser.new do |op| op.on('-c config-dir', 'set the config dir (default is /etc/mkit)') { |val| PARAMS_CONFIG[:config_dir] = val } op.on('-p port', 'set the port (default is 4567)') { |val| PARAMS_CONFIG[:port] = Integer(val) } @@ -50,6 +48,5 @@ PARAMS_CONFIG[:optparse_error] = e end end up -