travis-api/config.ru
Piotr Sarnacki 8c5529a50a Revert "go back to unicorn for now"
Server is not the bottleneck and new relic does not work on unicorn.

This reverts commit 4a88b2d8c6.

Conflicts:

	Gemfile.lock
2013-01-23 21:05:36 +01:00

17 lines
513 B
Ruby

# Make sure we set that before everything
ENV['RACK_ENV'] ||= ENV['RAILS_ENV'] || ENV['ENV']
ENV['RAILS_ENV'] = ENV['RACK_ENV']
$stdout.sync = true
require 'travis/api/app'
require 'core_ext/module/load_constants'
models = Travis::Model.constants.map(&:to_s)
only = [/^(ActiveRecord|ActiveModel|Travis|GH|#{models.join('|')})/]
[Travis::Api, Travis, GH].each do |target|
target.load_constants! :only => only, :skip => ['Travis::Memory', 'GH::ResponseWrapper'], :debug => false
end
run Travis::Api::App.new