Skip to content

pjullrich/www_redirect

Installer should add a notice when the anchor-point for code can't be found #1

Open zachdaniel (GitHub) opened this issue · 0 comments
zachdaniel (GitHub)
zachdaniel (GitHub) commented · AUTHOR

https://github.com/PJUllrich/www_redirect/blob/main/lib/mix/tasks/www_redirect.install.ex#L118

Somewhere around there (but not in the case that the first thing matched, since that means its already installed), there should be something like:

{:notice, """
Could not install WwwRedirect. We look for Plug.Static, and add our plug just before it.
However, we could not find that plug in your endpoint. Please add the following line in your endpoint:
plug WwwRedirect, to: :non_www
"""}

Join the conversation on pjullrich/www_redirect.

Sign up to comment on this issue

Already have an account? Sign in