Pushing my app to cloudControl (PaaS) fails: hook declined

436 views Asked by At

When trying to push and deploy my app to cloudControlled PaaS:

$ cctrlapp MY_APP/default push

I get the following error (reduced output):

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://[email protected]/repository.git
 ! [remote rejected] master -> master (hook declined)
error: failed to push some refs to 'ssh://[email protected]/repository.git'
Command '['PATH_TO_GIT', 'push', u'ssh://[email protected]/repository.git', 'master']'
returned non-zero exit status 1

Anyone has any idea?

1

There are 1 answers

2
dialogik On BEST ANSWER

I found out I have to remove the composer.phar file from the root directory of my repository. Too keep it in my local filesystem, I did

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