unicorn.git  about / heads / tags
Rack HTTP server for Unix and fast clients
blob 6eb092cc2f6d66cfc172e2acab28819f077ed69c 546 bytes (raw)
$ git show v0.97.1:test/rails/app-2.3.5/config/environment.rb	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
 
# -*- encoding: binary -*-

unless defined? RAILS_GEM_VERSION
  RAILS_GEM_VERSION = ENV['UNICORN_RAILS_VERSION']
end

# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')

Rails::Initializer.run do |config|
  config.frameworks -= [ :active_resource, :action_mailer ]
  config.action_controller.session_store = :active_record_store
  config.action_controller.session = {
    :session_key => "_unicorn_rails_test.#{rand}",
    :secret => "#{rand}#{rand}#{rand}#{rand}",
  }
end

git clone https://yhbt.net/unicorn.git