erikras / react-redux-universal-hot-example

A starter boilerplate for a universal webapp using express, react, redux, webpack, and react-transform
MIT License
12k stars 2.5k forks source link

run on prod server #1003

Open berdof opened 8 years ago

berdof commented 8 years ago

Is there any preferred way to run this starter on debian production server? I mean simple npm run start will work only during the ssh active session. How could I create a daemon according to this starter and how should incremental builds be done? And also do I need to stop node app to load new js or this happens automatically?

tearsofphoenix commented 8 years ago

pm2 is a choice.

[background] https://keymetrics.io/2014/06/25/ecosystem-json-deploy-and-iterate-faster/ http://pm2.keymetrics.io/docs/usage/deployment/ [example] https://github.com/Unitech/pm2/issues/1317 see xpepermint's answer. @berdof