Automate production deploys
Install nvm on the gitlab-runner userinstall node @10install pm2export env varsstop current instance-
pull(should happen automatically) build- run with pm2 in cluster mode like
NODE_ENV=production pm2 start lib/server/index.js --name app -i 2
- future deployments like NODE_ENV=production pm2 reload condenser
..... happy devs
Edited by Jacob Gadikian