【问题标题】:How do I push my git repository to dokku?如何将我的 git 存储库推送到 dokku?
【发布时间】:2017-08-26 23:04:55
【问题描述】:

我是 Dokku 的新手,我将它与 DigitalOcean 液滴结合使用。

我正在关注这个tutorial

我的问题是,当我将我的 git 存储库从 Github 推送到 dokku 时,我收到以下消息:

.git > git push -vvv dokku master
Pushing to dokku@dokku.me:my-rails-app
ssh: connect to host dokku.me port 22: Operation timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

我检查了我是否与 Github 连接,我似乎是:

my-rails-app > ssh -T git@github.com
Enter passphrase for key '/Users/xxxxx/.ssh/id_rsa': 
Hi xxxxx! You've successfully authenticated, but GitHub does not provide shell access.

我知道存储库存在。知道为什么这个推送超时吗?我可能会失去哪些权利?

谢谢!

【问题讨论】:

    标签: git github digital-ocean dokku


    【解决方案1】:

    push dokku master 会推送到远程doku,也就是你添加的那个

    git remote add dokku dokku@dokku.me:ruby-rails-sample
    

    因此,您是否连接到 GitHub 并不重要。

    您需要确保 ssh -T dokku.me 正常工作。
    当然,这假设您已经将 dokku.me 替换为您的实际 dokku 服务器的名称,如 dokku user management documentation comment 所示。

    【讨论】:

    • 非常感谢!我很感激。
    猜你喜欢
    • 2013-07-04
    • 2019-08-30
    • 2015-06-28
    • 1970-01-01
    • 2015-08-22
    • 1970-01-01
    • 2011-09-20
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多