2

我一直很高兴地使用 heroku 对 Rails 应用程序进行 beta 测试,但最近遇到了障碍。我更喜欢 Mercurial 而不是 git,并且一直在使用 hg-git 将我的应用程序推送到 Heroku。这工作正常,直到我分支我的回购(如果重要的话,通过在窑中克隆来做一个分支)。我的文件夹结构曾经是这样的:

~/Code/MyApp

现在是:

~/Code/MyApp/trunk
~/Code/MyApp/current

trunk旧的“根”副本在哪里,current是最近创建的分支。我确实尝试回到我的旧目录结构(只是根MyApp文件夹),但这并没有改变任何东西。

现在,当我推送到 heroku 时,它会这样做:

pushing to git+ssh://git@heroku.com:myapp.git
importing Hg objects into Git
converting revision 7491a23b35ee405325bb7a024f3cbee047a59dcd
*snipped all the revisions*
creating and sending data

然后就停下来。没有错误,当我检查站点时,没有发生更改。错误日志中也没有任何内容。那么给了什么?我宁愿不在应用程序中创建单独的 git repo;这很快就会变得一团糟。

4

1 回答 1

0

在我看来,您没有做相当于 a 的操作git push heroku master,而是在推动您的新分支。

Heroku 只会部署 master 分支。

有关主题分支的更多信息,请参见此处: http: //neilmiddleton.com/deploying-topic-branches-to-heroku/

于 2011-12-23T09:43:05.760 回答