Adapt to Heroku environment