Skip to content

Instantly share code, notes, and snippets.

@CreatiCoding
Created October 6, 2018 05:01
Show Gist options
  • Select an option

  • Save CreatiCoding/028ba18b1ee23cbbe77aa23361256f46 to your computer and use it in GitHub Desktop.

Select an option

Save CreatiCoding/028ba18b1ee23cbbe77aa23361256f46 to your computer and use it in GitHub Desktop.
backup
#1 make ssh key
cd ~
ssh-keygen
#2 regist ~/.ssh/id_rsa.pub to github account
cat ~/.ssh/id_rsa.pub
#3 add remote url if already exist repository
git remote set-url origin git@github.com:username/your-repository.git
#4 git clone webhook-node plugin in project directory
git clone https://github.com/cliche90/webhook_autopull.git
#5 edit hook.sh about directory path
REPOSITORY = "../webhook_autopull"
#6 edit index.hs about key and port
let secret = "secretkey"; let port = 8081;
#7 just do npm install
npm install express
npm install body-parser
npm install crypto
#8 execute hook service by node index
# reference https://gist.github.com/CreatiCoding/e5b0def3ba865adf035a95ea93f13ac2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment