当我尝试在heroku上部署我的应用程序时,我遇到了问题。我试图在dyno bash上执行命令,但在de / app文件夹中不存在文件。
git push heroku master
Counting objects: 1716, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (1650/1650), done.
Writing objects: 100% (1716/1716), 13.58 MiB | 114.00 KiB/s, done.
Total 1716 (delta 376), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> PHP app detected
remote: -----> Resolved composer.lock requirement for PHP to version 5.5.20.
remote: -----> Installing system packages...
remote: - PHP 5.5.20
remote: - Apache 2.4.10
remote: - Nginx 1.6.0
remote: -----> Installing PHP extensions...
remote: - redis (composer.lock; downloaded)
remote: - mongo (composer.lock; downloaded)
remote: - zend-opcache (automatic; bundled)
remote: -----> Installing dependencies...
remote:
remote: ! ERROR: File '/composer.phar' isn't executable; please 'chmod +x'!
remote:
remote:
remote: ! Push rejected, failed to compile PHP app
remote:
remote: Verifying deploy...
remote:
remote: ! Push rejected to my-app.
remote:
任何人都可以帮助我吗?
答案 0 :(得分:1)
我得到了解决方案。 实际上composer.phar只需要第一次。所以只需从本地删除它并运行
git add .
git commit -m 'composer.phar removed'
git push heroku master
答案 1 :(得分:0)
遥控器:!错误:文件'/composer.phar'不可执行;请'chmod + x'!
您需要更新文件权限。