use gem rails_12factor 
https://devcenter.heroku.com/articles/rails4#logging-and-assets