从github推送到heroku没有下载回购 [英] Push from github to heroku without downloading repo

查看:104
本文介绍了从github推送到heroku没有下载回购的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个github回购,我想推到一个heroku节点。第三名主持人将协调这一点。正如我将要大规模地做这件事,我想避免必须将回购的内容下载到第三台主机上。如何做到这一点?

I have a github repo that I want to push to a heroku node. A 3rd host will be co-ordinating this. As I'm going to be doing this on a large scale I want to avoid having to download the contents of the repo onto the 3rd host. How do I do it?

推荐答案

您无法直接从Github推送到Heroku。

You can't push straight from Github to Heroku.

您将不得不使用第三台主机来协调推送。这可以从Github post-receive钩子中解雇。

You're going to have to use the third host to coordinate the push. This could be fired from a Github post-receive hook.

直接同步使用类似于:

To sync straight across use something like:

git remote add github git@github.com:user/repo.git
git remote add heroku git@heroku.com:app.git

git push heroku refs/remotes/github/master:refs/heads/master

这篇关于从github推送到heroku没有下载回购的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆