【发布时间】:2013-04-07 00:45:30
【问题描述】:
我正在尝试使用 AFIncrementalStore and the Core Data Buildpack 将现有的 Core Data(带有本地存储)项目迁移到 Heroku,但推送到 Heroku 总是失败。
我的应用设置与上述教程中的主要区别:
我已经使用 AFNetworking/AFIncremental 依赖项设置了 Xcode 工作区,但实际上还没有更改任何代码。
包含 Xcode 项目/工作区文件的目录比我的 git 存储库的根目录低一级。这意味着
heroku create --buildpack git://github.com/mattt/heroku-buildpack-core-data.git无法创建名为heroku的git 远程,但我可以cd ..和heroku git:remote -a appname,这似乎很酷。我在我的 git 存储库中处理
master以外的分支,所以当我推送到 Heroku 时,我需要使用git push heroku my_local_branch:master。
但是,git push 没有任何作用,甚至没有进入 Core Data Buildpack 的东西(据我所知):
-----> Fetching custom git buildpack... done
! Heroku push rejected, no Cedar-supported app detected
To git@heroku.com:appname.git
! [remote rejected] my_local_branch -> master (pre-receive hook declined)
【问题讨论】:
-
您是否尝试过这里的任何建议:stackoverflow.com/a/12086925/334934
-
AFAICT,涉及此错误的问题的这些和大多数其他答案需要 Rails(或 PHP 或其他)应用程序中的某些文件已经存在在我的 repo正在推动 Heroku。另一方面,Core Data buildpack 显然应该创建它们。但在这个错误出现之前它似乎还没有达到那个点,因为否则我们会看到来自the buildpack scripts 的一些日志记录。
标签: ios heroku afincrementalstore