* Throw away old system * Add new system * Add new example files * Replace all calls * add the most important docs * Add Specs * rename disable_ssl_requirement to require_ssl * cloudfiles isn't used/called in our code * since community_spotlight.list is only used as enable flag replace it with such one and remove all legacy and irelevant codepaths around it * die if session secret is unset and on heroku * First basic infrastructure for version information
20 lines
865 B
Ruby
20 lines
865 B
Ruby
# Copyright (c) 2012, Diaspora Inc. This file is
|
|
# licensed under the Affero General Public License version 3 or later. See
|
|
# the COPYRIGHT file.
|
|
#hack to allow us to access app config, rather than putting in environments/production.rb
|
|
|
|
if Rails.env == 'production'
|
|
Diaspora::Application.configure do
|
|
if AppConfig.privacy.google_analytics_key.present?
|
|
config.gem 'rack-google-analytics', :lib => 'rack/google-analytics'
|
|
config.middleware.use Rack::GoogleAnalytics, :tracker => AppConfig.privacy.google_analytics_key.get
|
|
end
|
|
|
|
if AppConfig.privacy.piwik.enable?
|
|
require 'rack/piwik'
|
|
config.gem 'rack-piwik', :lib => 'rack/piwik'
|
|
config.middleware.use Rack::Piwik, :piwik_url => AppConfig.privacy.piwik.host.get,
|
|
:piwik_id => AppConfig.privacy.piwik.site_id.get
|
|
end
|
|
end
|
|
end
|