Refactored configuration for Heroku