class ServerCommand
Public Class Methods
new(options)
click to toggle source
# File lib/commands/server_command.rb, line 2 def initialize(options) @options = options end
Public Instance Methods
run()
click to toggle source
# File lib/commands/server_command.rb, line 6 def run ENV["RACK_ENV"] = "production" require "server/server_app" Rack::Handler::WEBrick.run( Sinatra::Application, :Port => @options[:server_port], ) end