Troubleshooting
Authorizing with Heroku
If your app runs on Heroku using the Elixir Buildpack (rather than Docker) you'll need to use compilation hook to authorize hex before fetching dependencies.
First, if you haven't already, set your license key on Heroku:
heroku config:set OBAN_WEB_LICENSE_KEY="YOUR OBAN WEB LICENSE KEY"
Next, add a small shell script to your application in ./bin/predeps
:
#!/bin/bash
mix hex.organization auth acme --key "$OBAN_WEB_LICENSE_KEY"
Finally, set the predeps
script within elixir_buildpack.config
:
hook_pre_fetch_dependencies="./bin/predeps"
Thanks to Jessie Cooke for the solution to this situation!