Git production deploy
Bash
#!/bin/bash

DEST="/var/www/githooks"
SOURCE="/var/www/deploy"

git --work-tree=$DEST --git-dir=$SOURCE checkout -f 
cd $DEST
npm install --production
pm2 start app.js --name=GitHooks