forked from External/greenlight
commit
66535e6881
5
Gemfile
5
Gemfile
|
@ -49,6 +49,11 @@ group :development do
|
||||||
gem 'spring-watcher-listen', '~> 2.0.0'
|
gem 'spring-watcher-listen', '~> 2.0.0'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
group :production do
|
||||||
|
# For more condensed logging
|
||||||
|
gem "lograge"
|
||||||
|
end
|
||||||
|
|
||||||
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
|
||||||
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
||||||
|
|
||||||
|
|
|
@ -91,6 +91,10 @@ GEM
|
||||||
listen (3.0.8)
|
listen (3.0.8)
|
||||||
rb-fsevent (~> 0.9, >= 0.9.4)
|
rb-fsevent (~> 0.9, >= 0.9.4)
|
||||||
rb-inotify (~> 0.9, >= 0.9.7)
|
rb-inotify (~> 0.9, >= 0.9.7)
|
||||||
|
lograge (0.4.1)
|
||||||
|
actionpack (>= 4, < 5.1)
|
||||||
|
activesupport (>= 4, < 5.1)
|
||||||
|
railties (>= 4, < 5.1)
|
||||||
loofah (2.0.3)
|
loofah (2.0.3)
|
||||||
nokogiri (>= 1.5.9)
|
nokogiri (>= 1.5.9)
|
||||||
mail (2.6.4)
|
mail (2.6.4)
|
||||||
|
@ -223,6 +227,7 @@ DEPENDENCIES
|
||||||
jquery-rails
|
jquery-rails
|
||||||
jquery-ui-rails
|
jquery-ui-rails
|
||||||
listen (~> 3.0.5)
|
listen (~> 3.0.5)
|
||||||
|
lograge
|
||||||
omniauth (= 1.3.1)
|
omniauth (= 1.3.1)
|
||||||
omniauth-google-oauth2 (= 0.4.1)
|
omniauth-google-oauth2 (= 0.4.1)
|
||||||
omniauth-twitter (= 1.2.1)
|
omniauth-twitter (= 1.2.1)
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
Rails.application.configure do
|
||||||
|
if Rails.env.production?
|
||||||
|
config.lograge.enabled = ENV['ENABLE_CONDENSED_LOGGING'].present?
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue