aboutsummaryrefslogtreecommitdiffstats
path: root/config/environments
diff options
context:
space:
mode:
Diffstat (limited to 'config/environments')
-rw-r--r--config/environments/development.rb9
-rw-r--r--config/environments/staging.rb19
-rw-r--r--config/environments/test.rb2
3 files changed, 26 insertions, 4 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb
index f21f27ab6..c43cdb049 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -12,13 +12,16 @@ config.whiny_nils = true
# Show full error reports and disable caching
config.action_controller.consider_all_requests_local = true
-config.action_controller.perform_caching = true
+config.action_controller.perform_caching = false
config.action_view.debug_rjs = true
# Don't care if the mailer can't send
config.action_mailer.raise_delivery_errors = false
-config.action_mailer.perform_deliveries = false
-config.action_mailer.delivery_method = :sendmail # so is queued, rather than giving immediate errors
+config.action_mailer.perform_deliveries = true
+# Use mailcatcher in development
+config.action_mailer.delivery_method = :smtp # so is queued, rather than giving immediate errors
+config.action_mailer.smtp_settings = { :address => "localhost", :port => 1025 }
+
# Writes useful log files to debug memory leaks, of the sort where have
# unintentionally kept references to objects, especially strings.
diff --git a/config/environments/staging.rb b/config/environments/staging.rb
new file mode 100644
index 000000000..84a8f5965
--- /dev/null
+++ b/config/environments/staging.rb
@@ -0,0 +1,19 @@
+# Settings specified here will take precedence over those in config/environment.rb
+
+# The production environment is meant for finished, "live" apps.
+# Code is not reloaded between requests
+config.cache_classes = true
+
+# Use a different logger for distributed setups
+# config.logger = SyslogLogger.new
+
+# Full error reports are disabled and caching is turned on
+config.action_controller.consider_all_requests_local = false
+config.action_controller.perform_caching = true
+
+# Enable serving of images, stylesheets, and javascripts from an asset server
+# config.action_controller.asset_host = "http://assets.example.com"
+
+# Disable delivery errors, bad email addresses will be ignored
+# config.action_mailer.raise_delivery_errors = false
+config.action_mailer.delivery_method = :sendmail # so is queued, rather than giving immediate errors
diff --git a/config/environments/test.rb b/config/environments/test.rb
index 32dc2b1ec..784ea18d3 100644
--- a/config/environments/test.rb
+++ b/config/environments/test.rb
@@ -1,6 +1,6 @@
# Settings specified here will take precedence over those in config/environment.rb
-require 'lib/patches/fixtures_constraint_disabling'
+require 'patches/fixtures_constraint_disabling'
# The test environment is used exclusively to run your application's
# test suite. You never need to work with it otherwise. Remember that