-
Notifications
You must be signed in to change notification settings - Fork 337
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TODO: Try DATABASE_URL instead of database.yml
- Loading branch information
1 parent
aa70438
commit 8badc9c
Showing
5 changed files
with
51 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,16 @@ | ||
FarmBot::Application.configure do | ||
# config.after_initialize do | ||
# Bullet.enable = true | ||
# Bullet.console = true | ||
# Bullet.raise = true | ||
# end | ||
|
||
# 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 = true | ||
|
||
# Configure static asset server for tests with Cache-Control for performance. | ||
config.public_file_server.enabled = true | ||
config.assets.debug = true | ||
config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' } | ||
|
||
# Show full error reports and disable caching. | ||
config.consider_all_requests_local = true | ||
config.action_controller.perform_caching = false | ||
|
||
# Raise exceptions instead of rendering exception templates. | ||
config.action_dispatch.show_exceptions = false | ||
|
||
# Disable request forgery protection in test environment. | ||
config.action_controller.allow_forgery_protection = false | ||
|
||
# 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 | ||
config.active_job.queue_adapter = :inline | ||
|
||
# Print deprecation notices to the stderr. | ||
config.active_support.deprecation = :stderr | ||
|
||
config.log_level = :error | ||
config.action_controller.perform_caching = false | ||
config.action_dispatch.show_exceptions = false | ||
config.action_mailer.delivery_method = :test | ||
config.active_job.queue_adapter = :inline | ||
config.active_support.deprecation = :stderr | ||
config.assets.debug = true | ||
config.cache_classes = true | ||
config.consider_all_requests_local = true | ||
config.eager_load = false | ||
config.log_level = :error | ||
config.public_file_server.enabled = true | ||
config.public_file_server.headers = \ | ||
{ 'Cache-Control' => 'public, max-age=3600' } | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters