Consolidate settings: try heroku first, fall back to localhost