lib/kanji/cli.rb in kanji-web-0.2.2 vs lib/kanji/cli.rb in kanji-web-0.3.0
- old
+ new
@@ -15,11 +15,14 @@
subcommand "generate", CLI::Generate
map "g" => "generate"
desc "server", "Start the application server"
+ method_option :port, default: 3300, aliases: "p"
def server
- `shotgun config.ru`
+ require "kanji/cli/server"
+ require_relative "#{Dir.pwd}/system/boot"
+ CLI::Server.start(options)
end
map "s" => "server"
desc "console", "Open up the application console"