pass through Env.pusher.channelPrefix for enterprise

This commit is contained in:
Sven Fuchs 2016-04-05 18:09:41 +02:00
parent e3efe7d7fc
commit 6505a058d6
2 changed files with 3 additions and 1 deletions

View File

@ -59,6 +59,7 @@ run Travis::Web::App.build(
pusher_key: ENV['PUSHER_KEY'],
pusher_host: ENV['PUSHER_HOST'] || 'ws.pusherapp.com',
pusher_path: ENV['PUSHER_PATH'],
pusher_channel_prefix: ENV['PUSHER_CHANNEL_PREFIX'],
ga_code: ENV['GA_CODE'],
root: File.expand_path('../../dist', __FILE__),
server_start: Time.now,

View File

@ -141,7 +141,7 @@ class Travis::Web::App
def expires(file)
if fingerprinted?(file)
(server_start + age).httpdate
(server_start + age).httpdate
else
'0'
end
@ -189,6 +189,7 @@ class Travis::Web::App
pusher['key'] = options[:pusher_key] if options[:pusher_key]
pusher['host'] = options[:pusher_host] if options[:pusher_host]
pusher['path'] = options[:pusher_path] if options[:pusher_path]
pusher['channel_prefix'] = options[:pusher_channel_prefix] if options[:pusher_channel_prefix]
config['pusher'] = pusher
config['ember-cli-pendo'] = { apiKey: options[:pendo_key] }