#!/bin/bash
$ cd /home/ubuntu/futsal-node # replace futsal-node to your server directory
$ git reset --hard HEAD^
$ git pull
$ pm2 stop futsal # replace futsal to your pm2 project name
$ pm2 start futsal # replace futsal to your pm2 project name
Last active
April 14, 2017 06:29
-
-
Save philographer/f20e95eb38c7ab4f7982037d5deef84c to your computer and use it in GitHub Desktop.
Github Node.js hook bash script
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment