Deploy Phoenix/Elixir project issue: npm ERR! TypeError: Object.keys called on non-object

When you deploy you phoenix/elixir project on production and something goes wrong it is very useful to make a git clone of your project directly on production server and try to run it there via `iex -S mix` to see what’s wrong. This is actually no really good practice but one of the fastest options.
Continue reading “Deploy Phoenix/Elixir project issue: npm ERR! TypeError: Object.keys called on non-object”

Deps issue: (Mix) Hex dependency resolution failed, relax the version requirements or unlock dependencies

(Mix) Hex dependency resolution failed, relax the version requirements or unlock dependencies

I have faced the issue when you add new dependancy to your Elixir project and appeared it used different version of some deps (because developer fixed deps version).
Continue reading “Deps issue: (Mix) Hex dependency resolution failed, relax the version requirements or unlock dependencies”

cat: deps/exrm/mix.exs: No such file or directory on edeliver build host

During building my elixir app with edeliver (`mix edeliver build release`) have faced this error:

cat: deps/exrm/mix.exs: No such file or directory

Failed to detect exrm version.

Please set EXRM_VERSION_MAJOR, EXRM_VERSION_MINOR and EXRM_VERSION_PATCH
in the console or the config file.

Detected '' as major,
                 '' as minor
         and '' as patch version.

Please make sure you have `exrm` in your mix.exs deps:

  defp deps do
    [{:exrm, "~> 1.0.3"}]
  end

IMPORTANT! After you add this to the mix.exs run `mix deps.get`, commit the changes and run again `mix edeliver build release`