deployment - How to deploy a Node.js + webpack bundled web app to production? -
i have web app has frontend , backend. want deploy production server. frontend bundled webpack. files go single file in dist
folder. folder has index.html
file copied project. client access file when uses web app. use babel
command bundle server side files lib
sub-folder of dist
folder. have inside dist
folder when build project production.
my project has express http server , websocket server. assume deploy server side code pm2
, how serve users client side? need use web server host client side? do?
one way is, use
nginx web server
to route node application. assuming server side code working fine , able serve static/dynamic content backend.
Comments
Post a Comment