-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working, when deployed using EXRM #1
Comments
I have a simple fix for this, that checks for the presence of a config value and matches to Here is my change:
|
Hi @ksakhamuri! To contribute you can: I still haven't used exrm myself but I see your point. Thing is, your patch doesn't work because mix_env is not inside the config section of the elixir_authorizenet app, it's an environment variable. You can however, open a pull request once you have a change that will pass the unit tests and also works in your exrm releases. Best Regards! |
When using releases, the `Mix` module is not available and the app will crash when reading the `uri()` function. This change modifies `uri()` to test for what it really cares about which is the existence of a config option called `:test_server_uri` which is dynamically built in the test setup. Resolves #1.
The helper function
uri
seems to depend onMix.env
, which is not available when deployed using exrm. This needs to be changed to work using config variables.The text was updated successfully, but these errors were encountered: