2012-08-29 53 views
0

我想推一个PHP应用程序。它昨天工作正常。今天它会引发错误。子模块路径'sdk'的错误可能与它有关,但正如我所说,从昨天开始没有什么大的变化,除了一些小的代码调整!无法推送主heroku PHP应用程序(昨天工作)

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 [email protected]:everyvotematters.git 
! [remote rejected] master -> master (pre-receive hook declined) 
error: failed to push some refs to '[email protected]:everyvotematters.git' 
Benjamins-MacBook-Pro:everyvotematters benjamin$ 

回答

1

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

先复制您的SDK文件夹somehwere安全然后运行:

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

然后我将该文件夹复制回,重新进行了提交,并推命令 这个固定为我。

1

嗯,“没有雪松支持的应用程序检测”是好奇的。我怀疑你已经修改了你的应用,使根文件夹中不再有index.php?这就是Heroku如何检测到它是一个PHP应用程序。