apt-get install -y curl >/dev/null 2>&1 curl -sL https://deb.nodesource.com/setup_8.x | bash - >/dev/null 2>&1 apt-get install -y nodejs >/dev/null 2>&1 npm install npm install pm2 -g pm2 start app.js --name project_name --env prod pm2 save pm2 startup