Merge rails_12factor support for heroku.