rubyforgood / mutual-aid

Mutual aid management platform for groups who build, support, and strengthen community resilience.
https://github.com/rubyforgood/mutual-aid/projects/4
MIT License
54 stars 61 forks source link

Set email options in all envs #33

Closed maebeale closed 4 years ago

maebeale commented 4 years ago

seeds.rb is breaking in prod bc the email settings (triggered by devise) weren't set

Screen Shot 2020-04-09 at 5 01 27 AM

https://stackoverflow.com/questions/7219732/missing-host-to-link-to-please-provide-host-parameter-or-set-default-url-optio

h-m-m commented 4 years ago

I was going to fix this by copying into config/environments/production.rb the line from my other PR, at https://github.com/maebeale/mutual-aid/blob/f09c45ef0d49fe6ae0036128f1544174fb05c0b9/config/environments/test.rb#L50

But then I realized I don't know what the host in the URL for prod should look like. Do you want to set it to localhost for now so the links deliberately don't work right yet, or do you have a hostname for prod yet?

maebeale commented 4 years ago

hey there, @h-m-m ! i invited you to two heroku apps: staging and prod. my vote would be to set it to an ENV var and we can store it using dotenv that you set up. what do you think?

h-m-m commented 4 years ago

That sounds smart!

maebeale commented 4 years ago

yay! lmk if you want/need me to add the env vars to the heroku apps themselves.

maebeale commented 4 years ago

completed