我在我的Lion机器上有这个应用程序,它位于一个mercurial repository中,所以我使用hg-git将它部署到heroku。hg-git从Lion部署到heroku
〜/ .hgrc
[extensions]
hgext.bookmarks =
hggit =
... /项目/ .hg/hgrc
[paths]
default = https://validhgrepo.com
[alias]
push-heroku = push git+ssh://[email protected]:appname.git
然后当我运行汞推的Heroku应该部署,而是我得到:
caseys-MacBook-Air:project casey$ hg push-heroku
pushing to git+ssh://[email protected]:appname.git/
creating and sending data
["git-receive-pack 'appname.git/'"]
! Invalid path.
! Syntax is: [email protected]:<app>.git where <app> is your app's name.
abort: git remote error: The remote server unexpectedly closed the connection.
这没有任何意义。我觉得这个错误信息是误导性的,因为这个信息库确实存在。
此外,这工作完美的我的Ubuntu机器上有一个类似的设置。
我没有一个.git文件夹,因为这个项目是在HG不是混帐。 – fiestacasey 2012-02-23 03:43:49
确实如此,但在与Heroku交谈时仍然在使用Git - 您需要确定远程设置的位置。 – 2012-02-23 13:21:24
'hg-git'(OP正在使用)显式不使用git。所以不,OP在与Heroku交谈时不使用git。 – 2012-05-13 19:11:24