Sha256: 453b47e06e05088656fec0ab694d7d418c89801fb01b1b7cf9562a2aac2e62c6

Contents?: true

Size: 744 Bytes

Versions: 6

Compression:

Stored size: 744 Bytes

Contents

#!/usr/bin/env ruby
require 'bundler/setup'
require 'webrick'
require 'webrick/ssl'
require 'logger'
require 'rack'
ENV['RACK_ENV'] = 'development'
ENV['CLARION_DEV_HTTPS']='1'
ENV['CLARION_REGISTRATION_ALLOWED_URL']='.+'

ENV['CLARION_STORE']='memory'
ENV['CLARION_COUNTER']='memory'


app, _ = Rack::Builder.parse_file(File.join(__dir__, 'config.ru'))

rack_options = {
  app: app,
  Port: ENV.fetch('PORT', 3000).to_i,
  Host: ENV.fetch('BIND', '127.0.0.1'),
  environment: 'development',
  server: 'webrick',
  Logger: Logger.new($stdout),#.tap { |_|  _.level = Logger::DEBUG },
  SSLEnable: true,
  SSLCertName: 'CN=localhost',
  SSLCertComment: 'dummy',
  SSLStartImmediately: true,
}
server = Rack::Server.new(rack_options)
server.start

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
clarion-1.1.0 dev.rb
clarion-1.0.0 dev.rb
clarion-0.3.0 dev.rb
clarion-0.2.1 dev.rb
clarion-0.2.0 dev.rb
clarion-0.1.0 dev.rb