I have developed React and Express App on my local macOS and am trying to deploy to Offline(No Internet) Production server.
What is the best way to Deploy to Offiline server?
-
npm pack with bundledDependencies option in package.json
Although i pushed all of my packages in bundledDependencies array, when i tried npm install on Production server, it gets error that seems like it still referring some internet connection. -
Use Webpack
I haven’t tried yet… Anybody use this for deploy? -
Just copy and paste all of directories including node_modules
Cuz i could not find any solution yet, i did this and worked, but i feel frustrated… “is it really the only way?”