The 'composer install' process failed with an error.
現在、laravelの学習のために個人開発を行なっています。
git cloneでdockerでlaravelの環境構築を行いました。
herokuへdeployを行ったところ最初にdeployは問題なく行えました。
しかし、403 Forbiddenのエラーが発生してしまい、調べたところProcfileを作成し忘れていたことが原因だと考え作成し再度herokuにpushしましたがタイトルのようなエラーが発生してしまいました。
ターミナルのログの内容的にはcomposerの箇所でうまく機能していないことが原因だと思いますが解決が難しいため質問させていただきました。
どなたかわかる方いましたらご教授していただきたいです。
実現したいこと
herokuへのdeploy
発生している問題・エラーメッセージ
Generating optimized autoload files remote: > Illuminate\Foundation\ComposerScripts::postAutoloadDump remote: > @php artisan package:discover --ansi remote: Could not open input file: artisan remote: Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1 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: ! - Your 'composer.lock' is out of date! remote: ! - A post-autoload-dump script terminated with an error remote: remote: ! Push rejected, failed to compile PHP app.
試したこと
composerの箇所でエラーが発生しており調べたところherokuがphpのサポートしているバージョンに問題があると考えcompose.jsonのphp versionの箇所を7.3に変更しましたが解決に至りませんでした。
補足情報(FW/ツールのバージョンなど)
環境はdocker, laravel, mysql laravel-ui導入済みです。
あなたの回答
tips
プレビュー