I'm trying to run the mix release
task to create a production phoenix server.
I was having an issue with poison so added the workaround from here. However now when I run the release task I get the following error:
Errors generating release
Duplicated modules:
'Elixir.Poison.Encoder.Any' specified in poison and myappname
I tried adding the following line in lib/myappname.ex
based on instructions from elixir getting started. But it didn't have any effect.
defmodule Myappname do
use Application
@derive [Poison.Encoder]
# ...