enhance staging mode in order to show errors and web_console
This commit is contained in:
4
Gemfile
4
Gemfile
@ -42,7 +42,7 @@ gem 'd3-rails'
|
|||||||
gem 'rest-client'
|
gem 'rest-client'
|
||||||
gem 'rubyzip'
|
gem 'rubyzip'
|
||||||
|
|
||||||
group :development do
|
group :development, :staging do
|
||||||
gem 'better_errors', platform: :ruby
|
gem 'better_errors', platform: :ruby
|
||||||
gem 'binding_of_caller', platform: :ruby
|
gem 'binding_of_caller', platform: :ruby
|
||||||
gem 'capistrano', '~> 3.3.0'
|
gem 'capistrano', '~> 3.3.0'
|
||||||
@ -56,7 +56,7 @@ group :development do
|
|||||||
gem 'web-console', '~> 2.0', platform: :ruby
|
gem 'web-console', '~> 2.0', platform: :ruby
|
||||||
end
|
end
|
||||||
|
|
||||||
group :development, :test do
|
group :development, :test, :staging do
|
||||||
gem 'byebug', platform: :ruby
|
gem 'byebug', platform: :ruby
|
||||||
gem 'spring'
|
gem 'spring'
|
||||||
end
|
end
|
||||||
|
@ -10,9 +10,12 @@ Rails.application.configure do
|
|||||||
# Rake tasks automatically ignore this option for performance.
|
# Rake tasks automatically ignore this option for performance.
|
||||||
config.eager_load = true
|
config.eager_load = true
|
||||||
|
|
||||||
# Full error reports are disabled and caching is turned on.
|
#enable web console in staging
|
||||||
config.consider_all_requests_local = false
|
config.web_console.development_only = false
|
||||||
config.action_controller.perform_caching = true
|
|
||||||
|
# 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
|
# Enable Rack::Cache to put a simple HTTP cache in front of your application
|
||||||
# Add `rack-cache` to your Gemfile before enabling this.
|
# Add `rack-cache` to your Gemfile before enabling this.
|
||||||
|
Reference in New Issue
Block a user