Fly.io deployment with ash_authentication
I'm trying to deploy the new version of my app with
ash_authentication
but I get an error at this line:
I'm guessing this is because it's trying to grab the secret during compile time (could be wrong). I also tried using fetch_env!
with the same results.5 Replies
I don't think you want either of those.
fetch_env!
will fail at compile time if you don't have it set
I'd suggest doing it the way that we do it in AshHq
And then signing_secret AshHq.Accounts.Secrets
Hmm okay I'll give it a try. Thanks!
You will want the config in your prod.exs to just call System.get_env to get the secrets out of the environment.
Okay I've gotten it published! Thanks for the the help!
Congrats!