【问题标题】:Error on deploy my app to heroku将我的应用程序部署到 heroku 时出错
【发布时间】:2015-02-25 06:12:04
【问题描述】:

当我尝试在 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:

谁能帮帮我?

【问题讨论】:

  • 关于这个问题的任何更新?你解决了吗?

标签: php heroku deployment


【解决方案1】:

我得到了解决方案。 实际上 composer.phar 只需要第一次。所以只需从本地删除它并运行

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

【讨论】:

  • 我尝试删除 composer.phar 但错误仍然存​​在! ://
【解决方案2】:

远程:!错误:文件“/composer.phar”不可执行;请'chmod +x'!

您需要更新文件权限。

【讨论】:

  • 在测功机或我的本地文件上?我尝试更新服务器(dyno)上的文件权限,但在 /app 文件夹中没有看到任何文件。
猜你喜欢
  • 2015-09-22
  • 2017-09-14
  • 2015-12-09
  • 2020-04-06
  • 2016-04-08
  • 2019-06-25
  • 2020-04-06
  • 2015-05-09
相关资源
最近更新 更多