直接从我的github仓库部署到heroku [英] Deploy to heroku directly from my github repository

查看:391
本文介绍了直接从我的github仓库部署到heroku的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何直接从GitHub远程存储库将应用程序部署到Heroku?

How can I deploy my app to Heroku directly from my GitHub remote repository?

是否存在这样的命令?

heroku push https://github.com/user/repository.git

有什么秘诀吗?技巧?

推荐答案

您可以在Github和Heroku之间放置服务,这可能会获得与您想要的结果类似的结果.

You can put services in between Github and Heroku which may achieve a similar result to what you want.

Heroku插件库中目前有两个插件,可以通过持续部署为您完成此任务.

There are presently two addons in the Heroku Addon library which would be able to do this for you via Continuous Deployment.

Codeship.io( https://addons.heroku.com/codeship ) wercker( https://addons.heroku.com/wercker )

Codeship.io (https://addons.heroku.com/codeship) wercker (https://addons.heroku.com/wercker)

基本上,当您添加并设置这些插件时,它们会在您的项目github存储库中安装一个Webhook,然后当您推送到该存储库时,将触发Webhook,该Webhook会触发该服务以获取代码(如果需要,请运行测试)并然后将代码推送到Heroku.

Basically, when you add and setup these addons they install a webhook into your projects github repo and then when you push to the repo, the webhook is triggered which triggers the service to grab your code (run tests if you want) and then push the code to Heroku.

这篇关于直接从我的github仓库部署到heroku的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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