add userlike config option
This commit is contained in:
parent
a7bc36cba7
commit
08dbac84aa
|
@ -59,7 +59,8 @@ App = Ember.Application.extend(Ember.Evented,
|
||||||
Travis.onUserUpdate(user)
|
Travis.onUserUpdate(user)
|
||||||
|
|
||||||
@on 'user:signed_out', () ->
|
@on 'user:signed_out', () ->
|
||||||
Travis.removeUserlike()
|
if config.userlike
|
||||||
|
Travis.removeUserlike()
|
||||||
|
|
||||||
currentDate: ->
|
currentDate: ->
|
||||||
new Date()
|
new Date()
|
||||||
|
@ -67,6 +68,7 @@ App = Ember.Application.extend(Ember.Evented,
|
||||||
onUserUpdate: (user) ->
|
onUserUpdate: (user) ->
|
||||||
if config.pro
|
if config.pro
|
||||||
@identifyCustomer(user)
|
@identifyCustomer(user)
|
||||||
|
if config.userlike
|
||||||
@setupUserlike(user)
|
@setupUserlike(user)
|
||||||
|
|
||||||
@subscribePusher(user)
|
@subscribePusher(user)
|
||||||
|
|
|
@ -52,7 +52,7 @@ module.exports = function(environment) {
|
||||||
sshKey: true,
|
sshKey: true,
|
||||||
caches: true
|
caches: true
|
||||||
};
|
};
|
||||||
ENV.charmKey = 'gy5gx7dy6dh86hxzkz1wmtvupwvievu';
|
ENV.userlike = true;
|
||||||
ENV.urls = {
|
ENV.urls = {
|
||||||
legal: ENV.billingEndpoint + "/pages/legal",
|
legal: ENV.billingEndpoint + "/pages/legal",
|
||||||
imprint: ENV.billingEndpoint + "/pages/imprint",
|
imprint: ENV.billingEndpoint + "/pages/imprint",
|
||||||
|
|
|
@ -50,6 +50,7 @@ if ENV['TRAVIS_ENTERPRISE']
|
||||||
end
|
end
|
||||||
|
|
||||||
run Travis::Web::App.build(
|
run Travis::Web::App.build(
|
||||||
|
userlike: ENV['USERLIKE'],
|
||||||
environment: ENV['RACK_ENV'] || 'development',
|
environment: ENV['RACK_ENV'] || 'development',
|
||||||
api_endpoint: ENV['API_ENDPOINT'],
|
api_endpoint: ENV['API_ENDPOINT'],
|
||||||
pages_endpoint: ENV['PAGES_ENDPOINT'],
|
pages_endpoint: ENV['PAGES_ENDPOINT'],
|
||||||
|
|
|
@ -200,6 +200,7 @@ class Travis::Web::App
|
||||||
config['charmKey'] = options[:charm_key] if options[:charm_key]
|
config['charmKey'] = options[:charm_key] if options[:charm_key]
|
||||||
config['githubOrgsOauthAccessSettingsUrl'] = options[:github_orgs_oauth_access_settings_url]
|
config['githubOrgsOauthAccessSettingsUrl'] = options[:github_orgs_oauth_access_settings_url]
|
||||||
config['ajaxPolling'] = true if options[:ajax_polling]
|
config['ajaxPolling'] = true if options[:ajax_polling]
|
||||||
|
config['userlike'] = true if options[:userlike]
|
||||||
|
|
||||||
config['endpoints'] = {
|
config['endpoints'] = {
|
||||||
'sshKey' => options[:ssh_key_enabled],
|
'sshKey' => options[:ssh_key_enabled],
|
||||||
|
|
Loading…
Reference in New Issue
Block a user