简体   繁体   English

将我的应用程序部署到heroku时出错

[英]Error on deploy my app to heroku

I'm having problems when I try to deploy my application on heroku. 尝试在heroku上部署应用程序时遇到问题。 I've tried to exec the command on dyno bash, but does not exists files in de /app folder. 我试图在dyno bash上执行命令,但在/ 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:

anyone can help me? 有人可以帮助我吗?

I got solution of this. 我对此有解决方案。 Actually composer.phar need only first time. 实际上composer.phar只需要第一次。 so just remove it from local and run 所以只需将其从本地删除并运行

git add .
git commit -m 'composer.phar removed'
git push heroku master

remote: ! 远程:! ERROR: File '/composer.phar' isn't executable; 错误:文件'/composer.phar'无法执行; please 'chmod +x'! 请'chmod + x'!

You need to update file permissions. 您需要更新文件权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM