logger_logstash_backend icon indicating copy to clipboard operation
logger_logstash_backend copied to clipboard

:exjsx required in applications?

Open taktran opened this issue 7 years ago • 3 comments

I tried deploying logger_logstash_backend, but I get the error message

-----> Generating release
using mix to generate release
Building release with MIX_ENV=prod.

You have dependencies (direct/transitive) which are not in :applications!
The following apps should be added to :applications in mix.exs:

        logger_logstash_backend => logger_logstash_backend is missing from cms

To fix it, I had to add

def application do
  [applications: [:logger, :logger_logstash_backend, :exjsx]]
end

along with the dep

def deps do
  [{:logger_logstash_backend, "~> 2.1.1"}]
end

It doesn't seem like tzdata (https://github.com/marcelog/logger_logstash_backend/issues/5) is needed anymore?

I can do a PR to fix this if you want

taktran avatar Jul 13 '16 10:07 taktran

Note: :exjsx is missing from the mix.exs in logger_logstash_backend too

taktran avatar Jul 13 '16 10:07 taktran

I faced the same issue while trying to prepare release package with Distillery. The problem is Elixir version requirement in logger_logstash_backend is still 1.3. It's only Elixir v1.4 and up that automatically infers :applications from deps. But being tied to v1.3 prevent that from happening.

ahmadferdous avatar Oct 30 '17 18:10 ahmadferdous

Can you guys try the new release? Elixir 1.5 is supported (1.3 is still the base requirement tho') and exjsx was added to the applications list

marcelog avatar Nov 04 '17 13:11 marcelog