Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Commit

Permalink
Merge pull request #5 from starfighterheavy/fixing-production-environ…
Browse files Browse the repository at this point in the history
…ment-config

Attempting to fix missing listener gem error
  • Loading branch information
jskirst authored Jun 6, 2017
2 parents ed04f04 + fc5365e commit 620c352
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,8 @@
# Show full error reports.
config.consider_all_requests_local = true

# Enable/disable caching. By default caching is disabled.
if Rails.root.join('tmp/caching-dev.txt').exist?
config.action_controller.perform_caching = true

config.cache_store = :memory_store
config.public_file_server.headers = {
'Cache-Control' => "public, max-age=#{2.days.seconds.to_i}"
}
else
config.action_controller.perform_caching = false

config.cache_store = :null_store
end
config.action_controller.perform_caching = false
config.cache_store = :null_store

# Don't care if the mailer can't send.
config.action_mailer.raise_delivery_errors = false
Expand All @@ -45,11 +34,4 @@

# Suppress logger output for asset requests.
config.assets.quiet = true

# Raises error for missing translations
# config.action_view.raise_on_missing_translations = true

# Use an evented file watcher to asynchronously detect changes in source code,
# routes, locales, etc. This feature depends on the listen gem.
config.file_watcher = ActiveSupport::EventedFileUpdateChecker
end

0 comments on commit 620c352

Please sign in to comment.