Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deploy to Heroku using Mercurial?

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?

like image 902
Martin Avatar asked Mar 06 '12 20:03

Martin


People also ask

What command will you use to deploy a project to Heroku?

To deploy your app to Heroku, use the git push command to push the code from your local repository's main branch to your heroku remote. For example: $ git push heroku main Initializing repository, done.


1 Answers

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://[email protected]:<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.

like image 95
Maxime R. Avatar answered Oct 11 '22 02:10

Maxime R.