Sha256: 820c8f2572769c1fa8e3e48b7ecf65e4084f7748852d10df48a68a6fb28892b7
Contents?: true
Size: 1.27 KB
Versions: 1
Compression:
Stored size: 1.27 KB
Contents
require File.expand_path('../boot', __FILE__) require 'rails/all' Bundler.require(*Rails.groups) require 'web_console' # Require pry-rails if the pry shell is explicitly requested. require 'pry-rails' if ENV['PRY'] module Dummy class Application < Rails::Application # When the Dummy application is ran in a docker container, the local # computer address is in the 172.16.0.0/12 range. Have it whitelisted. config.web_console.whitelisted_ips = %w( 127.0.0.1 172.16.0.0/12 ) if ENV['LONG_POLLING'] # You have to explicitly enable the concurrency, as in development mode, # the falsy config.cache_classes implies no concurrency support. # # The concurrency is enabled by removing the Rack::Lock middleware, which # wraps each request in a mutex, effectively making the request handling # synchronous. config.allow_concurrency = true # For long-polling 45 seconds timeout seems reasonable. config.web_console.timeout = 45.seconds end config.web_console.style.colors = if ENV['SOLARIZED_LIGHT'] 'solarized_light' elsif ENV['SOLARIZED_DARK'] 'solarized_dark' elsif ENV['TANGO'] 'tango' elsif ENV['XTERM'] 'xterm' else 'light' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
web-console-0.4.0 | test/dummy/config/application.rb |