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

查看:30
本文介绍了如何使用 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-Gitmercurial 插件,给你的仓库的 .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天全站免登陆