pm2 deploy with ssh

Posted ybleeho

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了pm2 deploy with ssh相关的知识,希望对你有一定的参考价值。

1. login remote server without password

ssh-copy-id  [email protected]

2.generate ssh key on server

ssh-keygen - t rsa

3. copy the server ssh key to the git deploy key

4. add gitlab to the know host

ssh-keyscan -t rsa gitlab.com >> ~/.ssh/known_hosts

 

以上是关于pm2 deploy with ssh的主要内容,如果未能解决你的问题,请参考以下文章

nginx+pm2+nodejs部署

安装node和pm2

PM2 (Node.js) 部署 - 主机密钥验证失败

Working with Deployment Configurations in CodeDeploy

[Now] Deploy a Node project with Zeit’s Now

[NodeJS] Use Secrets When Deploying Applications with Now