- CREATE A NEW SSH KEY WITH
ssh-keygen -t rsa -f ~/.ssh/id_rsa.REPONAME
-
Add the id_rsa.REPONAME.pub file as a deploy key to the Github repo
-
Edit the ~/.ssh/config file to add
Host tableau-rarefaction.github.com
HostName github.com
User git
IdentityFile /home/shiny/.ssh/id_rsa.REPONAME
- Git clone the repository with
git clone [email protected]:ReseauBiodiversiteQuebec/REPONAME.git
-
Edit the hook.js file of the shiny_hooks_node app (~/shiny_hooks_node) to add the repo.
-
Edit the .sh file (tableau_rarefaction_webhook.sh) with the proper commands.
-
Restart shiny hook with
sudo pm2 restart shiny-hook
- Add the webhook to the GitHub repo (settings -> Webhooks) using https://coleo.biodiversite-quebec.ca/shiny-hook/