-
Notifications
You must be signed in to change notification settings - Fork 28
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
nodeshift potentially hangs and grows archive file indefinitely #200
Comments
@rhoads-zach hi, Maybe this is something related to the missing please try to add the |
thanks @helio-frota that does resolve the issue, but i believe @lholmquist is looking into why this is happening in general |
@helio-frota yea, that would help. i noticed something intersting, if i don't have a node_modules folder, the archive happens fine. but with the node_modules folder things get crazy Probably will have to ignore that directory when archiving with out the files prop |
FYI, i applied the |
…d in the package.json * If no files property was found in the package.json, nodeshift would archive(tar) the current working directory. When there was a node_modules folder in that directory, which usually happens, the archive would grow to a crazy size. * The archiver has been updated to no longer include the node_modules, .git and tmp folders. It is still recommeneded to use the files property though. fixes nodeshift#200
…d in the package.json * If no files property was found in the package.json, nodeshift would archive(tar) the current working directory. When there was a node_modules folder in that directory, which usually happens, the archive would grow to a crazy size. * The archiver has been updated to no longer include the node_modules, .git and tmp folders. It is still recommeneded to use the files property though. fixes nodeshift#200
If you don't specify
files
in package.json (e.g. https://github.com/bucharest-gold/nodejs-rest-http/blob/master/package.json#L30), app could hang and grow indefinitely when runningnpm run openshift
.Example project:
https://github.com/rhoads-zach/swagger-app
to reproduce:
After 1 minute check
tmp/nodeshift/build/archive.tar
and notice it is several GB and growing.The text was updated successfully, but these errors were encountered: