如何使用Mercurial部署到Heroku? [英] How to deploy to Heroku using Mercurial?

查看:112
本文介绍了如何使用Mercurial部署到Heroku?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用了Mercurial很长一段时间了,我想开始使用Heroku作为部署平台。但是,他们似乎只支持Git。是否有人知道如何使用Mercurial Heroku?

I've been using Mercurial for quite some time and I'd like to start using Heroku as a deployment platform. However, they seem to support Git only. Does anybody knows how to Heroku using Mercurial?

推荐答案

安装 Hg-Git mercurial plugin ,为您的存储库的 .hg / hgrc 添加一个别名:

Once you have installed the Hg-Git mercurial plugin, add an alias to the .hg/hgrc of your repository:

[alias]
push-heroku = push git+ssh://git@heroku.com:<app name>.git

您现在可以将应用程序推送到Heroku:

You are now able to push your application to Heroku:

hg push-heroku



<请注意,默认情况下, Heroku不会将您的存储库名称与远程Heroku应用程序名称相链接。

这篇关于如何使用Mercurial部署到Heroku?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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