My priv/ directory contains a large vendor folder, containing Elasticsearch and a number of other foreign executables. I expect the CodeReloader to ignore this directory.
CodeReloader observes the priv/vendor directory, slowing down each request, very similar to https://github.com/phoenixframework/phoenix/issues/1607. If the priv/vendor folder is moved to vendor, CodeReloader no longer watches it.
Now that :reloadable_paths has been removed from the Endpoint configuration options, how would one exclude the priv/vendor folder (or any other folder) from CodeReloader?
@danielberkompas thank you!
Two questions:
Yes, the slowdown appears to occur in mix compile.
$ time mix compile
mix compile 2.32s user 2.06s system 139% cpu 3.139 total
$ mv priv/vendor vendor
$ time mix compile
mix compile 0.87s user 0.45s system 110% cpu 1.195 total
To answer your second question, I don't need those files to be in priv/, and I'm fine with moving them somewhere else. I just thought it was odd that having a large directory in priv would cause this behavior, so it warranted a bug report.
@danielberkompas yes, there is definitely something weird going on. I am going to see if I can reproduce this. :)
It is the gettext compiler. /cc @whatyouhide :)
Argh, I'll look into this :)
Closing this in favor of the gettext issue.
Most helpful comment
Closing this in favor of the gettext issue.