Open Zensavona opened 9 years ago
not sure if this issue is even mailgun
related, but here is the relevant mailing list discussion :)
https://groups.google.com/forum/#!topic/elixir-lang-talk/OzHSkE328Js
Having the same issue on heroku.
Hey, @duksis, I was able to get it working on Heroku by creating elixir_buildpack.config
with this line:
config_vars_to_export=(DATABASE_URL MAILGUN_KEY)
@backspace thanks - that works for me as well
Hi, I'm having some issues with the config being set when using mailgun from within a library I'm building, it's very possible I'm at fault here but I'm new to Elixir so maybe you can point me in the right direction...
I'm getting this error:
So, I've got a dependency to my main application which has a mailer like this:
and the main application (which depends on the library which includes that mailer) has these configs set as:
I've done a bit of digging and if I pop a
IO.inspect conf
andIO.inspect email
in at Line 44 ofmailgun/lib/client.ex
, it is getting the email, but not the conf, so my application config is working... The other interesting thing is that if I make a change to the mailer in the library, it recompiles(?) and then everything works. If I include the library into a fresh mix.phoenix project, it breaks again (in the new application, but not the old one). I am guessing this is something to do with compilation of macros?FWIW I've tried using
{:hr, path: "../path"}
and{:hr, git: "some-git-url"}
in the hope that if it's fetched remotely it will be recompiled and achieve the same effect as making a change to the source, but they behave exactly the same.Do you have any idea what could be causing this / Is there a way around it?
Thanks!