【发布时间】:2015-11-18 19:17:22
【问题描述】:
我正在按照这里的教程检查 dokku:http://progrium.viewdocs.io/dokku/application-deployment/
我通过 git 推送代码如下所示:http://progrium.viewdocs.io/dokku/application-deployment/#deploy-the-app
但 dokku 从不接手进行实际部署。到达那个点的步骤非常简单,我无法弄清楚设置中可能有什么问题。
但有一件事是,在我在服务器上创建一个裸仓库之前,我无法启动 git push。不确定是否应该在文档中执行该步骤,或者我是否犯了错误。
问题是我意识到我在错误的位置(在根目录中)初始化了裸仓库,所以我杀死了它并在 dokku 应用程序目录中初始化。 (再次注意,本教程根本没有说明需要这样做)......但现在我再次无法启动 git push。我明白了:
$ git push dokku master
fatal: 'ruby-rails-sample' 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.
我确实拥有访问权限(密钥等),正如我在根目录中初始化时能够推送所证明的那样
任何想法:
- 需要执行 git init 吗?
- 如果需要,在哪里执行 git init?
- 为什么我在 git push 上会出现上述错误?
- 为什么 dokku deploy 不触发?
【问题讨论】: