Class: ProconBypassMan::Web::Server

Inherits:
Object
  • Object
show all
Defined in:
lib/procon_bypass_man/web/server.rb

Class Method Summary collapse

Class Method Details

.startObject



157
158
159
160
161
162
163
164
165
166
# File 'lib/procon_bypass_man/web/server.rb', line 157

def self.start
  ProconBypassMan::Web::Db.migrate_if_pending_migration
  App.set :server_settings, {
    AccessLog: [
      [ProconBypassMan::Web.config.logger, WEBrick::AccessLog::COMMON_LOG_FORMAT],
      [ProconBypassMan::Web.config.logger, WEBrick::AccessLog::REFERER_LOG_FORMAT],
    ]
  }
  App.run! port: 9090
end