Installing dependencies in Elixir

If you are looking for something similar to npm install –save, then this does not exist in Elixir. You install things by adding them to deps: in the mix.exs file in your project then running mix deps.get. The other way you may wish to install certain applications is via a mix archive allowing this mix … Read more

How can I make Elixir mix test output more verbose?

To print the names of the passing tests, you can pass –trace argument to mix test. For example, here’s the output of mix test –trace on the current master branch of httpoison package: $ mix test –trace HTTPoisonTest Starting HTTParrot on port 8080 Starting HTTParrot on port 8433 (SSL) Starting HTTParrot on unix socket httparrot.sock … Read more

How do I recompile an Elixir project and reload it from within iex?

You can use the IEx.Helpers.recompile/0 function. Recompiles the current Mix application. This helper only works when IEx is started with a Mix project, for example, iex -S mix. Before compiling the code, it will stop the current application, and start it again afterwards. Stopping applications are required so processes in the supervision tree won’t crash … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)