Skip to content
Browse files

Serve static assets, log to STDOUT in staging/prod

The rails_12factor gem currently does two things in staging and
production environments:

* config.serve_static_assets = true
* Logger.new(STDOUT)

Rather than manage the intricacies of how these settings will change in
future versions of Rails, we should rely on the gem.

https://devcenter.heroku.com/articles/rails-integration-gems
https://github.com/heroku/rails_12factor
https://github.com/heroku/rails_serve_static_assets
https://github.com/heroku/rails_stdout_logging
  • Loading branch information...
1 parent 24485b1 commit 5b2bd2bea659eb8205465bcde8edf04951bab5d9 @croaky croaky committed Jul 14, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 templates/Gemfile_clean
View
1 templates/Gemfile_clean
@@ -44,4 +44,5 @@ end
group :staging, :production do
gem 'newrelic_rpm', '>= 3.5.7'
+ gem 'rails_12factor'
end

0 comments on commit 5b2bd2b

Please sign in to comment.
Something went wrong with that request. Please try again.