unicorn.git  about / heads / tags
Rack HTTP server for Unix and fast clients
blob 7c720f6dbe1a7ddf1af28dc69f1f6fbcb04c9b10 521 bytes (raw)
$ git show v0.5.2:test/rails/app-2.1.2/config/environment.rb	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
 
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 -= [ :action_web_service, :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