Answer the question
In order to leave comments, you need to log in
How to upload meteorjs to prod excluding images in bundle.tar.gz?
The bottom line is, when the meteor build command is executed , an archive is created where all the dependencies are compiled and the code itself with all the accompanying files ... which, for example, are in public / img, etc.
If you think about what will happen if there are a million files, he will collect all this into an archive, and this is not ice at all.
How can you avoid this, upload only the most necessary, code, some files, and not all at once?
Answer the question
In order to leave comments, you need to log in
Well, I found a way
//The bundler (tools/bundler.js) has a list of regexps that it ignores:
// files to ignore when bundling. node has no globs, so use regexps
var ignore_files = [
/~$/, /^\.#/, /^#.*#$/,
/^\.DS_Store$/, /^ehthumbs\.db$/, /^Icon.$/, /^Thumbs\.db$/,
/^\.meteor$/, /* avoids scanning N^2 files when bundling all packages */
/^\.git$/ /* often has too many files to watch */
];
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question