smeevil / cloudex

An elixir library which helps with uploading image files or urls to cloudinary
Do What The F*ck You Want To Public License
103 stars 64 forks source link

Cloud name not drawing from config #73

Closed bmfay closed 3 years ago

bmfay commented 3 years ago

Despite my config being as follows

iex(4)> Application.get_env(:cloudex, :cloud_name)
"my_app"

when I run

Cloudex.upload(image_url)

I get {:error, "Invalid cloud_name bmfay"}

What am I missing here?

bmfay commented 3 years ago

Turns out I had a ENV var CLOUDINARY_CLOUD_NAME set already from a previous project. Might be nice if the config would override env variables rather than the other way around, not sure. Either way, closing this