Error installing phoenix framework

Attempt dates and elixir for the first time. Stuck at the very end during project launch.

mix phoenix.server

Has anyone had the same problem? Here is the error. (postgrex was added as a dependency)

** (Mix) Failed to start application blog: Blog.start (: normal, []) returned an error: shutdown: failed to start child: Blog.Repo ** (EXIT) shutdown: failed to start child: Ecto.Adapters .Postgres ** (EXIT) an exception was thrown: ** (RuntimeError) could not find Ecto.Adapters.Postgres.Connection.

Please check that you added: postgrex as a dependency:

{:postgrex, ">= 0.0.0"}

And don't forget to recompile Ecto after cleaning the current build:

mix deps.clean ecto

            (ecto) lib/ecto/adapters/sql.ex:420: Ecto.Adapters.SQL.start_link/4
            (stdlib) supervisor.erl:343: :supervisor.do_start_child/2
            (stdlib) supervisor.erl:326: :supervisor.start_children/3
            (stdlib) supervisor.erl:292: :supervisor.init_children/2
            (stdlib) gen_server.erl:328: :gen_server.init_it/6
            (stdlib) proc_lib.erl:240: :proc_lib.init_p_do_apply/3
+4
source share
1

ecto. :

$ mix deps.update ecto
$ mix phoenix.server

+4

Source: https://habr.com/ru/post/1625554/


All Articles