前提・実現したいこと
herokuでのデプロイをしようとしたところエラーが発生してしまいました。
ファイルはapi設定の部分を少し触っただけなので原因がわかりません。
ご教授いただければ嬉しいです。
発生している問題・エラーメッセージ
remote: ! WARNING: A post-autoload-dump script terminated with an error remote: remote: ! ERROR: Dependency installation failed! remote: ! remote: ! The 'composer install' process failed with an error. The cause remote: ! may be the download or installation of packages, or a pre- or remote: ! post-install hook (e.g. a 'post-install-cmd' item in 'scripts') remote: ! in your 'composer.json'. remote: ! remote: ! Typical error cases are out-of-date or missing parts of code, remote: ! timeouts when making external connections, or memory limits. remote: ! remote: ! Check the above error output closely to determine the cause of remote: ! the problem, ensure the code you're pushing is functioning remote: ! properly, and that all local changes are committed correctly. remote: ! remote: ! For more information on builds for PHP on Heroku, refer to remote: ! https://devcenter.heroku.com/articles/php-support remote: ! remote: ! REMINDER: the following warnings were emitted during the build; remote: ! check the details above, as they may be related to this error: remote: ! - A post-autoload-dump script terminated with an error remote: remote: ! Push rejected, failed to compile PHP app. remote: remote: ! Push failed remote: ! remote: ! ## Warning - The same version of this code has already been built: dcf8005f1546215750eca568eb2a87cde4a374fc remote: ! remote: ! We have detected that you have triggered a build from source code with version dcf8005f1546215750eca568eb2a87cde4a374fc remote: ! at least twice. One common cause of this behavior is attempting to deploy code from a different branch. remote: ! remote: ! If you are developing on a branch and deploying via git you must run: remote: ! remote: ! git push heroku <branchname>:main remote: ! remote: ! This article goes into details on the behavior: remote: ! https://devcenter.heroku.com/articles/duplicate-build-version remote: remote: Verifying deploy... remote: remote: ! Push rejected to gentle-mountain-43491. remote: To https://git.heroku.com/gentle-mountain-43491.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed to push some refs to 'https://git.heroku.com/gentle-mountain-43491.git'
該当のソースコード
php
1<?php 2 3namespace App\Http\Controllers; 4 5use LINE\LINEBot\HTTPClient\CurlHTTPClient; 6use LINE\LINEBot; 7use App\Models\User; 8use LINE\LINEBot\MessageBuilder\TextMessageBuilder; 9use APP\LineFrend; 10use Illuminate\Http\Request; 11 12class LineApiController extends Controller 13{ 14 // メッセージ送信用 15 public function webhook() { 16 $input=$request->all(); 17 18 19} 20 21}
試したこと
composer.jsonと書いてあったのですが、特にいじってはないので原因がわからないです。
補足情報(FW/ツールのバージョンなど)
laravel,php
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。