Class: Goliath::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/zebra/proxy_server.rb

Instance Method Summary collapse

Instance Method Details

#runObject



26
27
28
29
30
31
32
33
34
# File 'lib/zebra/proxy_server.rb', line 26

def run
  $LOADED_FEATURES.unshift(File.basename($0))
  Dir.chdir(File.expand_path(Zebra.config.chdir))
  @port = 8000
  if Zebra.config.server?
    @port = ::Zebra.config.server[:port]
  end
  run_server
end