出现错误
fatal: 'fixcodes' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我丢失了公钥,因此我不得不创建一个新的公钥:
添加密钥:
root@localhost:/home/rapsli# dokku ssh-keys:add admin id_rsa.pub
SHA256:FBByHoCiZZzV2xDHmY7RvFhXcTXY0/Bvt1zPJJydmjw
创建新应用
root@localhost:/home/rapsli# dokku apps:create fixcodes
-----> Creating fixcodes... done
然后在我的本地计算机上添加远程仓库:
git remote add dokku dokku@apps.example.com:fixcodes
尝试推送到它失败。
(fixcodes-_8Vg9MY6) λ git push dokku master
fatal: 'fixcodes' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
奇怪的是,我可以不用密码就可以登录服务器:
ssh dokku@apps.example.com
这很好,告诉我按键已经到位。有什么想法吗?