-
Notifications
You must be signed in to change notification settings - Fork 384
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
Preventing node-gyp rebuild on every cf push #31
Comments
We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/102752516. |
@charyorde it looks like it rebuilds each time. Are you experiencing a problem when they are rebuilt? |
This probably won't change, too. It rebuilds each time to guarantee that security patches happen with the compile dependencies. |
Yes I'm experiencing problems like app taking too long to stage. I had to increase timeout using |
To your original question, there is no exposed flag. You are free to fork the buildpack and add the support yourself. If you are having app performance problems, please contact your CF provider for support. |
@charyorde Worth noting is that we received PR #19 for something like what you're suggesting. IMHO, it shouldn't be something that a user has to set, the buildpack (or maybe node-gyp) should be smart enough to see if artifacts are already compiled in the cache dir, and re-use them if so. We're currently blocked on moving forward because we lack the expertise to know how to implement such a feature, and we're looking for someone from the node.js community who'd be willing to pair with us on this. Would you be interested in doing so? |
Seems the newly released NodeJS v4.0.0 solves this problem. Quoting from https://nodejs.org/en/blog/release/v4.0.0/
|
Hi,
Some of my app deps require a rebuild of native modules as seen below:
Is there any exposed flag to prevent this on every
cf push
?The text was updated successfully, but these errors were encountered: