enhance staging mode in order to show errors and web_console

This commit is contained in:
Ralf Teusner
2016-11-24 14:46:18 +01:00
parent 442b405927
commit 66de024195
2 changed files with 8 additions and 5 deletions

View File

@ -42,7 +42,7 @@ gem 'd3-rails'
gem 'rest-client'
gem 'rubyzip'
group :development do
group :development, :staging do
gem 'better_errors', platform: :ruby
gem 'binding_of_caller', platform: :ruby
gem 'capistrano', '~> 3.3.0'
@ -56,7 +56,7 @@ group :development do
gem 'web-console', '~> 2.0', platform: :ruby
end
group :development, :test do
group :development, :test, :staging do
gem 'byebug', platform: :ruby
gem 'spring'
end

View File

@ -10,9 +10,12 @@ Rails.application.configure do
# Rake tasks automatically ignore this option for performance.
config.eager_load = true
# Full error reports are disabled and caching is turned on.
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
#enable web console in staging
config.web_console.development_only = false
# Show full error reports and disable caching.
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
# Enable Rack::Cache to put a simple HTTP cache in front of your application
# Add `rack-cache` to your Gemfile before enabling this.