grych / drab

Remote controlled frontend framework for Phoenix.

Home Page:https://tg.pl/drab

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Drab is unable to find the endpoint of ':cool_interface'.

ericridgeway opened this issue · comments

Elixir 1.7.4
Phoenix 1.4.3

Clean dir: mix phx.new cool_interface
cd cool_interface

Add {:drab, "~> 0.10.0"} to mix.exs

Run mix deps.get

Finally mix drab.install

Get the unable to find endpoint error

I've tried manually installing but just get other errors that also seem to involve endpoint. I was really hoping the drab.install with everything being up-to-date versions would save me

Hi @ericridgeway,
could you give me some errors?

I have the same problem:

==> drab
Compiling 38 files (.ex)
Generated drab app
==> phoenix_ecto
Compiling 6 files (.ex)
Generated phoenix_ecto app
==> phx_drab
Checking prerequisites for :phx_drab
lib/phx_drab_web/templates/layout/app.html.eex
lib/phx_drab_web/channels/user_socket.ex
config/config.exs
config/dev.exs
The installer is going to modify those files. OK to proceed? [Yn] y
Drab is already installed in lib/phx_drab_web/templates/layout/app.html.eex, skipping.
Drab is already installed in lib/phx_drab_web/channels/user_socket.ex, skipping.
Drab is unable to find the endpoint of :phx_drab.
** (Mix) Giving up.

Hi @AndreasBraun2015,
can you please give me some details, please?

I am using version : Phoenix v1.3.4 and Elixir 1.7.3 (compiled with Erlang/OTP 19).

Here are the steps I did:

create app

mix phx.new phx_drab
cd phx_drab
mix ecto.create
mix phx.server

warning add {:plug_cowboy, "~> 1.0"}

atom .

mix.exs

{:plug_cowboy, "~> 1.0"}

mix deps.get

test app

mix phx.server
localhost:4000

add drab

https://github.com/grych/drab

mix.exs

{:drab, "~> 0.10.0"}

mix deps.get

install drab

mix drab.install

error

mix drab.install
warning: found quoted keyword "test" but the quotes are not required. Note that keywords are always atoms, even when quoted, and quotes should only be used to introduce keywords with foreign characters in them
mix.exs:59

Checking prerequisites for :phx_drab
lib/phx_drab_web/templates/layout/app.html.eex
lib/phx_drab_web/channels/user_socket.ex
config/config.exs
config/dev.exs
The installer is going to modify those files. OK to proceed? [Yn] y
Drab is already installed in lib/phx_drab_web/templates/layout/app.html.eex, skipping.
Drab is already installed in lib/phx_drab_web/channels/user_socket.ex, skipping.
Drab is unable to find the endpoint of :phx_drab.
** (Mix) Giving up.

Many thanks for your help. I used drab before with older phx versions and it is a great package, thank you for providing it to the community.

Thanks, I will try to find it.

Let me know if you need more details, system printouts or anything. Love Drab so much, thanks for making it so great!