Add this:

mkdir -p /www/$(hostname)
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/gitlab
cd /www/$(hostname)
git reset HEAD -\-hard;
git pull

ps cax | grep node

Whenever you login, it will: 1) sync your GIT ssh keys and pull the latest code from the repository (have to manually clone it first, read below)
2) console log current running processes

Prerequisites: 1) make /www/your-host-name
2) cd into that new folder and clone your git repository into it
3) you must have the private/public SSH keys in ~/.ssh/ folder, and chmod set to 600

results matching ""

    No results matching ""