I have created a nodejs service that uses https://github.com/steveukx/git-js package.
When launching my service with
node index.js; everything works fine.
When using PM2 ( https://github.com/Unitech/pm2) to launch my service I always got the following issue
57| | Permission denied (publickey). 57| | fatal: Could not read from remote repository. 57| | Please make sure you have the correct access rights 57| | and the repository exists.
For info; I have setted up an SSH connection from my VPS to GITHUB.
My ssh keys are on ~/.ssh/
I assume that PM2 does not access properly to my directory but I still can not figure out how to configure it.
Any help will be much appreciated;