-
Notifications
You must be signed in to change notification settings - Fork 224
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
Is it possible to cache digested Phoenix output? #97
Comments
I think that's possible. What we do now is we store node_modules in the cache_dir so that we just copy the packages from there before running You could do the same in the
You could probably do the same with the compiled js file. Store it in the cache dir so you can copy it in later builds so that subsequent builds would be faster. That might help speed up subsequent builds where there were changes in Let me know how that pans out. |
I did some measurements locally, and I came up with this:
I wonder if the strategy you've mentioned of comparing heroku-buildpack-phoenix-static/lib/build.sh Line 117 in 3e414fc
to eliminate calls to npm install .
I could make a PR if you like the idea. |
A PR would of what you described would be great, @tomekowal! Also, turns out there's a I guess we could use that |
Or use only
defeats its purpose :) Also, it discards cached It is a tradeoff between speed of |
We have a Phoenix app that is mostly backend but still has two or three web pages. The JS very rarely changes, but significant part of build time is consumed by recompiling JS files.
Would it be possible to skip all that work if
package-lock.json
and md5 sum of source files did not change between builds?The text was updated successfully, but these errors were encountered: