将我的应用程序推送到cloudControl(PaaS)失败:hook拒绝了

时间:2013-08-29 10:52:44

标签: deployment push paas cloudcontrol

尝试将我的应用推送和部署到cloudControlled PaaS时:

$ cctrlapp MY_APP/default push

我收到以下错误(减少输出):

remote: -----> Receiving push
remote: /srv/www/buildpacks/php/bin/compile: line 81: /srv/tmp/builddir/code/composer.phar: Permission denied
remote:  !     cloudControl push rejected, failed to compile php app
remote:  !
remote: error: hook declined to update refs/heads/master
To ssh://MY_APP@cloudcontrolled.com/repository.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://MY_APP@cloudcontrolled.com/repository.git'
Command '['PATH_TO_GIT', 'push', u'ssh://MY_APP@cloudcontrolled.com/repository.git', 'master']'
returned non-zero exit status 1

任何人都有任何想法?

1 个答案:

答案 0 :(得分:0)

我发现我必须从我的存储库的根目录中删除composer.phar文件。我把它保存在我的本地文件系统中,我做了

git rm --cached composer.phar
# then commit, push, deploy