deploy 部署卡在 update_code?
我是新买的腾讯云的服务器,系统是ubuntu 16 ,用 summerblue/laravel-ubuntu-init
这个包来初始化的 lnmp 环境,在用 deploy
来部署项目上线的时候,参考的这里的文章,但是与教程不一样的地方是:
- 我不是用的 root 账户登录主机的,比如我登陆的是用的 ubuntu 账户 比如
ssh ubuntu@xxx.xxx.xxx.xxx
- 仓库我用的是码云上的
private 仓库
- 我在部署的时候,在仓库里面加入了部署公钥,用到的是
/home/ubuntu/.ssh/id_rsa.pub
也就是ubuntu
账户的公钥。
报错如下:
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我想请教的问题是,现在卡在update_code 这个地方了,是不是我仓库的部署公钥不应该是 ubuntu
账户的呢 ?是需要创建 wwwroot
账户的公钥加入仓库的部署公钥中吗?
推荐文章: