vladkrasovsky
12/7/2016 - 9:50 AM

node_server_init.sh

#!/bin/sh

#cd app folder
cd /home/node/apps/smtp-node;

#git
git pull;

#node
npm i;

export NODE_ENV=production
export PATH=/usr/local/bin:$PATH
forever start /home/node/apps/smtp-node/app.js > /dev/null