add userlike config option

This commit is contained in:
Lisa Passing 2015-07-15 14:26:41 +02:00
parent a7bc36cba7
commit 08dbac84aa
4 changed files with 6 additions and 2 deletions

View File

@ -59,7 +59,8 @@ App = Ember.Application.extend(Ember.Evented,
Travis.onUserUpdate(user)
@on 'user:signed_out', () ->
Travis.removeUserlike()
if config.userlike
Travis.removeUserlike()
currentDate: ->
new Date()
@ -67,6 +68,7 @@ App = Ember.Application.extend(Ember.Evented,
onUserUpdate: (user) ->
if config.pro
@identifyCustomer(user)
if config.userlike
@setupUserlike(user)
@subscribePusher(user)

View File

@ -52,7 +52,7 @@ module.exports = function(environment) {
sshKey: true,
caches: true
};
ENV.charmKey = 'gy5gx7dy6dh86hxzkz1wmtvupwvievu';
ENV.userlike = true;
ENV.urls = {
legal: ENV.billingEndpoint + "/pages/legal",
imprint: ENV.billingEndpoint + "/pages/imprint",

View File

@ -50,6 +50,7 @@ if ENV['TRAVIS_ENTERPRISE']
end
run Travis::Web::App.build(
userlike: ENV['USERLIKE'],
environment: ENV['RACK_ENV'] || 'development',
api_endpoint: ENV['API_ENDPOINT'],
pages_endpoint: ENV['PAGES_ENDPOINT'],

View File

@ -200,6 +200,7 @@ class Travis::Web::App
config['charmKey'] = options[:charm_key] if options[:charm_key]
config['githubOrgsOauthAccessSettingsUrl'] = options[:github_orgs_oauth_access_settings_url]
config['ajaxPolling'] = true if options[:ajax_polling]
config['userlike'] = true if options[:userlike]
config['endpoints'] = {
'sshKey' => options[:ssh_key_enabled],