Setting Environment Variable

Env 1

  • Go to Settings menu

Env 2

  • Click “Reveal Config Vars” Button

Env 3

  • Fill the key field and value field then click “Add” button

Env 4

  • From that list, at least you input:

    • ADMIN EMAIL: fill with the admin email
    • DOMAIN: fill with your heroku domain
    • MAILER_EMAIL_ID: your account mailer
    • MAILER_FROM: your account mailer
    • MAILER_PASSWORD: your password
    • MAILER_SERVICE_PROVIDER: your smtp service
    • MONGOLAB_URI: your mongodb URI (mongodb://:@ds147872.mlab.com:47872/project-a-dev)
  • You can get mongodb uri on your mongolab Env 5

  • Restart your heroku

heroku restart