diff --git a/Gemfile b/Gemfile index 0f49702d..65cb5fe8 100644 --- a/Gemfile +++ b/Gemfile @@ -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 diff --git a/config/environments/staging.rb b/config/environments/staging.rb index 5dfdae13..dfe8cefb 100644 --- a/config/environments/staging.rb +++ b/config/environments/staging.rb @@ -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.