vendor/bundle/ruby/1.8/gems/sinatra-1.2.8/lib/sinatra/base.rb
# Run the Sinatra app as a self-hosted server using
# Thin, Mongrel or WEBrick (in that order)
Run the Sinatra app as a self-hosted server using
Thin, Mongrel or WEBrick (in that order)
Run the Sinatra app as a self - hosted server using Thin Mongrel or WEBrick ( in that order )
def run!(options={})
        set options
        handler      = detect_rack_handler
        handler_name = handler.name.gsub(/.*::/, '')
        $stderr.puts "== Sinatra/#{Sinatra::VERSION} has taken the stage " +
          "on #{port} for #{environment} with backup from #{handler_name}" unless handler_name =~/cgi/i
        handler.run self, :Host => bind, :Port => port do |server|
          [:INT, :TERM].each { |sig| trap(sig) { quit!(server, handler_name) } }
          set :running, true
        end
      rescue Errno::EADDRINUSE => e
        $stderr.puts "== Someone is already performing on port #{port}!"
      end
def run! ( options = { } ) set options handler = detect_rack_handler handler_name = handler . name . gsub ( / .*:: / , '' ) $stderr . puts "== Sinatra/#{Sinatra::VERSION} has taken the stage " + "on #{port} for #{environment} with backup from #{handler_name}" unless handler_name =~ / cgi /i handler . run self , :Host => bind , :Port => port do | server | [ :INT , :TERM ] . each { | sig | trap ( sig ) { quit! ( server , handler_name ) } } set :running , true end rescue Errno :: EADDRINUSE => e $stderr . puts "== Someone is already performing on port #{port}!" end
Run the Sinatra app as a self-hosted server using
Thin, Mongrel or WEBrick (in that order)
Run the Sinatra app as a self - hosted server using Thin Mongrel or WEBrick ( in that order )
options