summaryrefslogtreecommitdiff
path: root/config/environments
diff options
context:
space:
mode:
authorhukl <hukl@eight.local>2009-01-29 20:41:18 +0100
committerhukl <hukl@eight.local>2009-01-29 20:41:18 +0100
commitb298d3e8eeb10903bd4640dab7c11d0dc1be9d38 (patch)
treed8d0a8449972a46e551be3b94e7dd02b6107b119 /config/environments
initial import with edge rails included as a submodule
Diffstat (limited to 'config/environments')
-rw-r--r--config/environments/development.rb17
-rw-r--r--config/environments/production.rb27
-rw-r--r--config/environments/test.rb27
3 files changed, 71 insertions, 0 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb
new file mode 100644
index 0000000..85c9a60
--- /dev/null
+++ b/config/environments/development.rb
@@ -0,0 +1,17 @@
1# Settings specified here will take precedence over those in config/environment.rb
2
3# In the development environment your application's code is reloaded on
4# every request. This slows down response time but is perfect for development
5# since you don't have to restart the webserver when you make code changes.
6config.cache_classes = false
7
8# Log error messages when you accidentally call methods on nil.
9config.whiny_nils = true
10
11# Show full error reports and disable caching
12config.action_controller.consider_all_requests_local = true
13config.action_view.debug_rjs = true
14config.action_controller.perform_caching = false
15
16# Don't care if the mailer can't send
17config.action_mailer.raise_delivery_errors = false \ No newline at end of file
diff --git a/config/environments/production.rb b/config/environments/production.rb
new file mode 100644
index 0000000..1fc9f6b
--- /dev/null
+++ b/config/environments/production.rb
@@ -0,0 +1,27 @@
1# Settings specified here will take precedence over those in config/environment.rb
2
3# The production environment is meant for finished, "live" apps.
4# Code is not reloaded between requests
5config.cache_classes = true
6
7# Full error reports are disabled and caching is turned on
8config.action_controller.consider_all_requests_local = false
9config.action_controller.perform_caching = true
10
11# See everything in the log (default is :info)
12# config.log_level = :debug
13
14# Use a different logger for distributed setups
15# config.logger = SyslogLogger.new
16
17# Use a different cache store in production
18# config.cache_store = :mem_cache_store
19
20# Enable serving of images, stylesheets, and javascripts from an asset server
21# config.action_controller.asset_host = "http://assets.example.com"
22
23# Disable delivery errors, bad email addresses will be ignored
24# config.action_mailer.raise_delivery_errors = false
25
26# Enable threaded mode
27# config.threadsafe! \ No newline at end of file
diff --git a/config/environments/test.rb b/config/environments/test.rb
new file mode 100644
index 0000000..496eb95
--- /dev/null
+++ b/config/environments/test.rb
@@ -0,0 +1,27 @@
1# Settings specified here will take precedence over those in config/environment.rb
2
3# The test environment is used exclusively to run your application's
4# test suite. You never need to work with it otherwise. Remember that
5# your test database is "scratch space" for the test suite and is wiped
6# and recreated between test runs. Don't rely on the data there!
7config.cache_classes = true
8
9# Log error messages when you accidentally call methods on nil.
10config.whiny_nils = true
11
12# Show full error reports and disable caching
13config.action_controller.consider_all_requests_local = true
14config.action_controller.perform_caching = false
15
16# Disable request forgery protection in test environment
17config.action_controller.allow_forgery_protection = false
18
19# Tell Action Mailer not to deliver emails to the real world.
20# The :test delivery method accumulates sent emails in the
21# ActionMailer::Base.deliveries array.
22config.action_mailer.delivery_method = :test
23
24# Use SQL instead of Active Record's schema dumper when creating the test database.
25# This is necessary if your schema can't be completely dumped by the schema dumper,
26# like if you have constraints or database-specific column types
27# config.active_record.schema_format = :sql \ No newline at end of file