Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

try forcing the asset host to assets* apps

  • Loading branch information...
commit 880e5d2cd160fe585171b67acdb96b409db652c2 1 parent b41036e
@svenfuchs svenfuchs authored
View
18 config/application.rb
@@ -7,6 +7,24 @@
# @rkh why don't we just add /lib to the load path here?
require File.expand_path('../../lib/oauth_proxy', __FILE__) # FIXME: WTF???
+
+config = {
+ production: {
+ asset_host: 'travis-assets.herokuapp.com',
+ domain: 'secure.travis-ci.org'
+ },
+ staging: {
+ asset_host: 'travis-assets-staging.herokuapp.com',
+ domain: 'travis-staging.herokuapp.com'
+ }
+}
+config = config[Travis.env.to_sym]
+
+Travis.config.assets.host = config[:asset_host]
+Travis.config.domain = config[:domain]
+Travis.config.host = config[:domain]
+
+
module TravisCi
class Application < Rails::Application
config.encoding = 'utf-8'
View
1  config/initializers/travis.rb
@@ -1 +1,2 @@
require 'travis'
+
View
1  config/unicorn.rb
@@ -13,6 +13,7 @@
require 'travis'
Travis.config.update_periodically
+
Travis::Amqp.connect
ActiveRecord::Base.establish_connection if defined?(ActiveRecord::Base)
Please sign in to comment.
Something went wrong with that request. Please try again.