laravel - 如何修复 heroko 中的 laravel 部署错误?
问题描述
我正在尝试在 heruko 中部署一个简单的应用程序,但是当我执行部署分支时,它返回一个错误
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
! WARNING: A post-autoload-dump script terminated with an error
! ERROR: Dependency installation failed!
!
! The 'composer install' process failed with an error. The cause
! may be the download or installation of packages, or a pre- or
! post-install hook (e.g. a 'post-install-cmd' item in 'scripts')
! in your 'composer.json'.
!
! Typical error cases are out-of-date or missing parts of code,
! timeouts when making external connections, or memory limits.
!
! Check the above error output closely to determine the cause of
! the problem, ensure the code you're pushing is functioning
! properly, and that all local changes are committed correctly.
!
! For more information on builds for PHP on Heroku, refer to
! https://devcenter.heroku.com/articles/php-support
!
! REMINDER: the following warnings were emitted during the build;
! check the details above, as they may be related to this error:
! - A post-autoload-dump script terminated with an error
! Push rejected, failed to compile PHP app.
! Push failed
解决方案
推荐阅读
- python - 在特定时间内完成画圆
- python - Python:更新字典的语法
- html - 调整窗口大小时Div消失
- magento2 - 如何覆盖 module-catalog-search/view/frontend/templates/searchlist.phtml
- react-native - React Native Navigation Wix V2 顶部栏按钮操作
- facebook - 在 html 中预先创建一个 facebook 帖子并提交
- python - 在哪里保存长硬编码数据以在 Django 中进行初始迁移?
- python - SUMO 和 TraCI,多个客户端 - 一个连接
- javascript - Vue js在编译时正在删除脚本标签
- powershell - 对包含给定短语的字符串应用过滤器并返回之后发生的所有内容