【发布时间】:2016-07-14 13:11:42
【问题描述】:
我正在尝试将位于本地 git 存储库中的应用程序部署到 digitalocean 上的 dokku 实例。
区域文件
$ORIGIN mydomain.com.
$TTL 1800
...
mydomain.com. 1800 IN A 11.22.33.44
www.mydomain.com. 1800 IN CNAME mydomain.com.
*.mydomain.com. 1800 IN A 11.22.33.44
test.mydomain.com. 1800 IN A 11.22.33.44
我打算在test.mydomain.com上部署我的应用
独库设置
我使用 digitalocean 上的 dokku 映像来设置服务器,该服务器当前在 dokku v0.4.15 上运行,并尝试根据显然已过时的 the guide 部署我的应用程序,但是,我没有找到更新的一个。
ssh 设置
我还设置了 SSH 密钥和配置文件,因此我可以通过 SSH 为用户 root 和 登录我的 dokku 实例独孤:
ssh {username}@test.localhome.ch// works
本地 ssh 配置文件
Host mydomain.com test.mydomain.com
HostName 11.22.33.44
IdentityFile ~/.ssh/mydomain
PreferredAuthentications publickey
部署
当我尝试部署我的 git 存储库时:
git remote add dokku dokku@test.mydomain.com:test
git push dokku master
它会把我扔掉
fatal: 'test' 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.
我错过了什么?
编辑 1
我还通过 ssh 进入服务器并添加了 dokku 应用程序
ssh dokku@mydomain.com
dokku apps:create test
该应用似乎已正确添加到服务器端..
dokku@mydomain:~$ dokku apps
=====> My Apps
test
.. 但是,推送仍然失败。
【问题讨论】:
标签: git ssh digital-ocean dokku