4 ms·
Thank you for your reply. But anyway, adding them to your repository, is development domain, right? How do you handle adding modules with binary to your repos
by filipedeschamps 13y ago
Thank you for your reply.
But anyway, adding them to your repository, is development domain, right?
How do you handle adding modules with binary to your repository? If you're using Windows to develop, and Debian to production, what is exactly you pre-deploy preparation to fix this?
- ronodi 13y agoRegarding to development it depends on your needs and how mixed is your development environment (is everyone on a Unix system, or you can have Linux/Mac/Windows) If you are concerned about mixing you binary with source in a repo you can always use `npm install --ignore-scripts` this should download modules without building them and add them to your repo afterwards, followed by a `npm rebuild` and adding created files to `.gitignore` For the pre-deploy preparation what I'm doing now is preparing everything in a separate location (pre-deploy path), pulling new code rebuilding it if necessary, running tests if all went ok the code is moved to the final deploy path.