Adapt settings to work with or without heroku