How to deploy to Heroku using Mercurial?

时光毁灭记忆、已成空白 提交于 2019-12-17 23:10:53

问题


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?


回答1:


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

You are now able to push your application to Heroku:

hg push-heroku

Be aware that Heroku does not link your repository name with the remote Heroku app name by default.




回答2:


You can use the Hg-Git Mercurial Plugin




回答3:


Use hg-git and add this to the repository's .hg/hgrc file under [paths]:

heroku = https://git.heroku.com/<app-name>.git

Now you can deploy by typing:

hg push heroku

It will prompt for username and password. These were stored in your ~/.netrc file when you ran heroku login (don't try to use your heroku account password, it won't work). Copy and paste from there. See: https://devcenter.heroku.com/articles/git#http-git-authentication for more information about authentication.



来源:https://stackoverflow.com/questions/9591380/how-to-deploy-to-heroku-using-mercurial

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!