For that error, do you have the DISCOURSE_MAXMIND_ACCOUNT_ID added to your app.yml as well?
DISCOURSE_MAXMIND_ACCOUNT_ID
app.yml