0

尝试将我的应用程序推送和部署到 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

有人有什么想法吗?

4

1 回答 1

0

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

git rm --cached composer.phar
# then commit, push, deploy
于 2013-08-29T12:51:46.813 回答