使用nodejs pm2
install
npm install pm2 -g |
run
pm2 start app.js
stop
pm2 stop
List all processes:
pm2 list
demo
here is my github demo ,you
https://github.com/lazyTai/demo/tree/master/webpack4
find build/serve.js //for a server
run it with pm2
npm run dev //for complier your source file by webpack
please start