Redmine 3.4.4
This commit is contained in:
commit
64924a6376
2112 changed files with 259028 additions and 0 deletions
21
config/environments/development.rb
Normal file
21
config/environments/development.rb
Normal file
|
@ -0,0 +1,21 @@
|
|||
Rails.application.configure do
|
||||
# Settings specified here will take precedence over those in config/application.rb
|
||||
|
||||
# In the development environment your application's code is reloaded on
|
||||
# every request. This slows down response time but is perfect for development
|
||||
# since you don't have to restart the webserver when you make code changes.
|
||||
config.cache_classes = false
|
||||
|
||||
# Do not eager load code on boot.
|
||||
config.eager_load = false
|
||||
|
||||
# Show full error reports and disable caching
|
||||
config.consider_all_requests_local = true
|
||||
config.action_controller.perform_caching = false
|
||||
|
||||
# Disable delivery errors
|
||||
config.action_mailer.raise_delivery_errors = false
|
||||
|
||||
# Print deprecation notices to stderr and the Rails logger.
|
||||
config.active_support.deprecation = [:stderr, :log]
|
||||
end
|
25
config/environments/production.rb
Normal file
25
config/environments/production.rb
Normal file
|
@ -0,0 +1,25 @@
|
|||
Rails.application.configure do
|
||||
# Settings specified here will take precedence over those in config/application.rb
|
||||
|
||||
# Code is not reloaded between requests.
|
||||
config.cache_classes = true
|
||||
|
||||
# Eager load code on boot. This eager loads most of Rails and
|
||||
# your application in memory, allowing both threaded web servers
|
||||
# and those relying on copy on write to perform better.
|
||||
# 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
|
||||
|
||||
# Disable delivery errors
|
||||
config.action_mailer.raise_delivery_errors = false
|
||||
|
||||
# No email in production log
|
||||
config.action_mailer.logger = nil
|
||||
|
||||
# Print deprecation notices to the Rails logger.
|
||||
config.active_support.deprecation = :log
|
||||
end
|
38
config/environments/test.rb
Normal file
38
config/environments/test.rb
Normal file
|
@ -0,0 +1,38 @@
|
|||
Rails.application.configure do
|
||||
# Settings specified here will take precedence over those in config/application.rb
|
||||
|
||||
# The test environment is used exclusively to run your application's
|
||||
# test suite. You never need to work with it otherwise. Remember that
|
||||
# your test database is "scratch space" for the test suite and is wiped
|
||||
# and recreated between test runs. Don't rely on the data there!
|
||||
config.cache_classes = true
|
||||
|
||||
# Do not eager load code on boot. This avoids loading your whole application
|
||||
# just for the purpose of running a single test. If you are using a tool that
|
||||
# preloads Rails for running tests, you may have to set it to true.
|
||||
config.eager_load = false
|
||||
|
||||
# Show full error reports and disable caching
|
||||
config.consider_all_requests_local = true
|
||||
config.action_controller.perform_caching = false
|
||||
|
||||
config.action_mailer.perform_deliveries = true
|
||||
|
||||
# Tell Action Mailer not to deliver emails to the real world.
|
||||
# The :test delivery method accumulates sent emails in the
|
||||
# ActionMailer::Base.deliveries array.
|
||||
config.action_mailer.delivery_method = :test
|
||||
|
||||
# Disable request forgery protection in test environment.
|
||||
config.action_controller.allow_forgery_protection = false
|
||||
|
||||
# Disable sessions verifications in test environment.
|
||||
config.redmine_verify_sessions = false
|
||||
|
||||
# Print deprecation notices to stderr and the Rails logger.
|
||||
config.active_support.deprecation = [:stderr, :log]
|
||||
|
||||
config.secret_key_base = 'a secret token for running the tests'
|
||||
|
||||
config.active_support.test_order = :random
|
||||
end
|
2
config/environments/test_pgsql.rb
Normal file
2
config/environments/test_pgsql.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Same as test.rb
|
||||
instance_eval File.read(File.join(File.dirname(__FILE__), 'test.rb'))
|
2
config/environments/test_sqlite3.rb
Normal file
2
config/environments/test_sqlite3.rb
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Same as test.rb
|
||||
instance_eval File.read(File.join(File.dirname(__FILE__), 'test.rb'))
|
Loading…
Add table
Add a link
Reference in a new issue