无法推送大师heroku PHP应用程序(昨天工作)

时间:2012-08-29 22:41:55

标签: git heroku push main

我正在尝试推送PHP应用。昨天工作得很好。今天它会抛出错误。子模块路径'sdk'的错误可能与它有关,但正如我所说,除了一些小的代码调整之外,自昨天以来没有大的变化!

Benjamins-MacBook-Pro:everyvotematters benjamin$ git status
# On branch master
# Your branch is ahead of 'everyvotematters/master' by 4 commits.
#
nothing to commit (working directory clean)
Benjamins-MacBook-Pro:everyvotematters benjamin$ git push everyvotematters master
Counting objects: 24, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (19/19), done.
Writing objects: 100% (20/20), 4.49 KiB, done.
Total 20 (delta 7), reused 0 (delta 0)

-----> Heroku receiving push
-----> Git submodules detected, installing
       Submodule 'sdk' (https://github.com/facebook/facebook-php-sdk.git) registered for path 'sdk'
       Initialized empty Git repository in /tmp/build_awiw4oll8o2g/sdk/.git/
       Submodule path 'sdk': checked out '98f2be163c96a51166354e467b95dd38aa4b0a19'
 !     Heroku push rejected, no Cedar-supported app detected

To git@heroku.com:everyvotematters.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git@heroku.com:everyvotematters.git'
Benjamins-MacBook-Pro:everyvotematters benjamin$ 

2 个答案:

答案 0 :(得分:1)

嗯,“没有检测到Cedar支持的应用程序”很奇怪。我怀疑你是否修改了你的应用程序,以至于根文件夹中不再有index.php?这就是Heroku检测到它是一个PHP应用程序的方式。

答案 1 :(得分:1)

我有一个SDK文件夹的本地版本。这很好,然后有一天它刚刚停止工作。

首先复制您的SDK文件夹,然后运行:

git rm sdk
git commit -am "removing sdk folder"
git push heroku master

然后我重新复制文件夹,重新提交commit和push命令 这为我修好了。