尝试将我的应用程序推送并部署到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://[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
有人有主意吗?
我发现我必须composer.phar
从存储库的根目录中删除该文件。太把它保存在我的本地文件系统中,我做了
git rm --cached composer.phar
# then commit, push, deploy
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句