Project structure:
I just packaged and deployed the node folder. I also know the reason is that the corresponding dependency node_modules has not been deployed.
Question:
Is it similar to vue or reactJs? After compiling through the packaging script, you only need to deploy the code after the build.
Remarks:
Front-end development, start learning node. The node on nginx has been configured. I also wrote a demo deployment using the http module of the node directly, and it can run normally.
How should we understand this sentence? Does the questioner mean linux? Please describe the problem clearly first
Just add a location in nginx.conf to configure the proxy.
For example, if the listening port of my node project is 9189, it can be configured as follows:
Just reverse proxy