我的pm2(node.js)部署有什么问题?

时间:2016-10-25 12:05:34

标签: node.js pm2

尝试使用pm2部署我的node.js应用程序,但遇到以下问题:

Cloning into '/var/www/source'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

  failed to clone

Deploy failed

我的服务器密钥已添加到github部署密钥中。如果我在那台机器上没有克隆存储库 - 我可以克隆没有问题(repo是私有的)。想法?

你们有什么工具可以用于部署?

1 个答案:

答案 0 :(得分:0)

显然是使用以下行从我的私钥中删除密码:

openssl rsa -in ~/.ssh/id_rsa -out ~/.ssh/id_rsa

可能不那么优雅,但它才有效。