我移动了源目录,无法再推送到 Heroku
我一直很高兴使用 Heroku 对 Rails 应用程序进行 Beta 测试,但最近遇到了障碍。与 git 相比,我更喜欢 Mercurial,并且一直在使用 hg-git 将我的应用程序推送到 Heroku。在我对我的仓库进行分支之前,这工作得很好(如果重要的话,通过在窑中克隆来进行分支)。我的文件夹结构过去是这样的:
~/Code/MyApp
现在是:
~/Code/MyApp/trunk
~/Code/MyApp/current
其中 trunk
是旧的“根”副本,current
是最近创建的分支。我确实尝试返回到旧的目录结构(只是根 MyApp
文件夹),但这并没有改变任何东西。
现在,当我推送到heroku时,它会执行以下操作:
pushing to git+ssh://[email protected]:myapp.git
importing Hg objects into Git
converting revision 7491a23b35ee405325bb7a024f3cbee047a59dcd
*snipped all the revisions*
creating and sending data
然后停止。没有错误,当我检查网站时,更改没有发生。并且错误日志中也没有任何内容。那么什么给出呢?我不想在应用程序中创建单独的 git 存储库;那很快就会变得混乱。
I've been happily using heroku to beta test a Rails app, and recently hit a snag. I prefer Mercurial to git and have been using hg-git to push my app to Heroku. This was working fine until I branched my repo (doing a branch by cloning in kiln, if that matters). My folder structure used to look like this:
~/Code/MyApp
And is now:
~/Code/MyApp/trunk
~/Code/MyApp/current
Where trunk
is the old 'root' copy, and current
is the recently created branch. I did try going back to my old directory structure (just the root MyApp
folder) and that didn't change anything.
Now when I push to heroku, it does this:
pushing to git+ssh://[email protected]:myapp.git
importing Hg objects into Git
converting revision 7491a23b35ee405325bb7a024f3cbee047a59dcd
*snipped all the revisions*
creating and sending data
And then just stops. No errors, and when I check the site, the change didn't happen. And there's nothing in the error logs either. So what gives? I'd rather not create a separate git repo in the app; that'll get messy quickly.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在我看来,你并没有做相当于 git push heroku master 的事情,而是推送你的新分支。
Heroku 将仅部署 master 分支。
有关主题分支的更多信息,请参阅此处:http://neilmiddleton.com/deploying-topic -branchs-to-heroku/
It sounds to me like you're not doing the equivalent of a
git push heroku master
, but instead pushing your new branch.Heroku will only deploy the master branch.
For more on topic branches, see here: http://neilmiddleton.com/deploying-topic-branches-to-heroku/