Sha256: 110e9cacdca238fc9139b394d9771fff4a5df416a8709204fc372abb723c152e

Contents?: true

Size: 502 Bytes

Versions: 24

Compression:

Stored size: 502 Bytes

Contents

module GovukUnicorn
  def self.configure(config)
    config.worker_processes Integer(ENV.fetch("UNICORN_WORKER_PROCESSES", 2))

    if ENV["GOVUK_APP_LOGROOT"]
      config.stdout_path "#{ENV['GOVUK_APP_LOGROOT']}/app.out.log"
      config.stderr_path "#{ENV['GOVUK_APP_LOGROOT']}/app.err.log"
    end

    config.before_exec do |server|
      next unless ENV["GOVUK_APP_ROOT"]
      ENV["BUNDLE_GEMFILE"] = "#{ENV['GOVUK_APP_ROOT']}/Gemfile"
    end

    config.check_client_connection true
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
govuk_app_config-1.14.0 lib/govuk_app_config/govuk_unicorn.rb
govuk_app_config-1.13.1 lib/govuk_app_config/govuk_unicorn.rb
govuk_app_config-1.13.0 lib/govuk_app_config/govuk_unicorn.rb
govuk_app_config-1.12.0 lib/govuk_app_config/govuk_unicorn.rb
govuk_app_config-1.11.3 lib/govuk_app_config/govuk_unicorn.rb
govuk_app_config-1.11.2 lib/govuk_app_config/govuk_unicorn.rb
govuk_app_config-1.11.1 lib/govuk_app_config/govuk_unicorn.rb
govuk_app_config-1.11.0 lib/govuk_app_config/govuk_unicorn.rb
govuk_app_config-1.10.0 lib/govuk_app_config/govuk_unicorn.rb
govuk_app_config-1.9.3 lib/govuk_app_config/govuk_unicorn.rb
govuk_app_config-1.9.2 lib/govuk_app_config/govuk_unicorn.rb
govuk_app_config-1.9.1 lib/govuk_app_config/govuk_unicorn.rb
govuk_app_config-1.9.0 lib/govuk_app_config/govuk_unicorn.rb
govuk_app_config-1.8.0 lib/govuk_app_config/govuk_unicorn.rb
govuk_app_config-1.7.0 lib/govuk_app_config/govuk_unicorn.rb
govuk_app_config-1.6.0 lib/govuk_app_config/govuk_unicorn.rb
govuk_app_config-1.5.1 lib/govuk_app_config/govuk_unicorn.rb
govuk_app_config-1.5.0 lib/govuk_app_config/govuk_unicorn.rb
govuk_app_config-1.4.2 lib/govuk_app_config/govuk_unicorn.rb
govuk_app_config-1.4.1 lib/govuk_app_config/govuk_unicorn.rb