Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ericridgeway opened this issue Apr 3, 2019 · 6 comments
Open

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

ericridgeway opened this issue Apr 3, 2019 · 6 comments

Comments

@ericridgeway
Copy link

ericridgeway commented Apr 3, 2019

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

@grych
Copy link
Owner

grych commented Apr 11, 2019

Hi @ericridgeway,
could you give me some errors?

@AndreasBraun2015
Copy link

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.

@grych
Copy link
Owner

grych commented Apr 16, 2019

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

@AndreasBraun2015
Copy link

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.

@grych
Copy link
Owner

grych commented Apr 18, 2019

Thanks, I will try to find it.

@ericridgeway
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants