簡體   English   中英

將我的應用程序部署到heroku時出錯

[英]Error on deploy my app to heroku

嘗試在heroku上部署應用程序時遇到問題。 我試圖在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:

有人可以幫助我嗎?

我對此有解決方案。 實際上composer.phar只需要第一次。 所以只需將其從本地刪除並運行

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

遠程:! 錯誤:文件'/composer.phar'無法執行; 請'chmod + x'!

您需要更新文件權限。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM