Created
October 6, 2018 05:01
-
-
Save CreatiCoding/028ba18b1ee23cbbe77aa23361256f46 to your computer and use it in GitHub Desktop.
backup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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