Skip to content

Commit

Permalink
Serve static assets, log to STDOUT in staging/prod
Browse files Browse the repository at this point in the history
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
Dan Croak committed Jul 22, 2013
1 parent 24485b1 commit 5b2bd2b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/Gemfile_clean
Original file line number Diff line number Diff line change
Expand Up @@ -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.