Skip to content

Set `config.serve_static_assets` to true in the production environment #133

Closed
gabebw opened this Issue Jan 10, 2013 · 2 comments

2 participants

@gabebw
thoughtbot, inc. member
gabebw commented Jan 10, 2013

Heroku injects a plugin that does this for us, but I just ran into a situation where I had to set it manually. I think it's better to turn it on rather than rely on Heroku.

@croaky
thoughtbot, inc. member
croaky commented Jul 14, 2013

@gabebw Sorry for the delay getting back to you on this. Since you opened the issue, Rails 4 has come out and Heroku has offered the rails_12factor gem, which is not automatically injected into the environment during deploys, but rather is a choice the developer has to make for their Gemfile. I believe that's the direction we should go and have just opened a pull request for it here:

#196

@croaky croaky closed this Jul 14, 2013
@gabebw
thoughtbot, inc. member
gabebw commented Jul 14, 2013

Nice! I agree that the gem is the way to go here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.