Php Can';不要在heroku上安装我的laravel应用程序

Php Can';不要在heroku上安装我的laravel应用程序,php,git,laravel,heroku,laravel-5.2,Php,Git,Laravel,Heroku,Laravel 5.2,无论我尝试什么,我总是会遇到以下错误: stackoverflow要求我为这个问题添加更多细节,它不会发布。我尝试过将.env和/vendor放入.gitignore,尝试过设置BuildPack,尝试过在互联网上搜索deploy laravel project to heroku时看到的许多东西 什么都不管用 下面是我的git push heroku master命令的输出,下面是无法编译PHP错误: git push heroku master Counting objects: 4, do

无论我尝试什么,我总是会遇到以下错误: stackoverflow要求我为这个问题添加更多细节,它不会发布。我尝试过将.env和/vendor放入.gitignore,尝试过设置BuildPack,尝试过在互联网上搜索deploy laravel project to heroku时看到的许多东西

什么都不管用

下面是我的git push heroku master命令的输出,下面是无法编译PHP错误:

git push heroku master
Counting objects: 4, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 293 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote: 
remote: -----> Using set buildpack heroku/php
remote: -----> PHP app detected
remote: -----> Bootstrapping...
remote: -----> Installing platform packages...
remote:        - php (7.0.4)
remote:        - ext-mbstring (bundled with php)
remote:        - apache (2.4.18)
remote:        - nginx (1.8.1)
remote: -----> Installing dependencies...
remote:        Composer version 1.0.0-beta1 2016-03-03 15:15:10
remote: 
remote:  !     WARNING: Your Composer vendor dir is part of your Git repository.
remote:        This directory should not be under version control; only your
remote:        'composer.json' and 'composer.lock' files should be added, which
remote:        will let Composer handle installation of dependencies on deploy.
remote:        To suppress this notice, first remove the folder from your index
remote:        by running 'git rm --cached vendor/'.
remote:        Next, edit your project's '.gitignore' file and add the folder
remote:        '/vendor/' to the list.
remote:        For more info, refer to the Composer FAQ: http://bit.ly/1rlCSZU
remote: 
remote:        Loading composer repositories with package information
remote:        Installing dependencies from lock file
remote:          - Removing symfony/dom-crawler (v3.0.3)
remote:          - Removing symfony/css-selector (v3.0.3)
remote:          - Removing phpunit/phpunit (4.8.23)
remote:          - Removing phpunit/php-code-coverage (2.2.4)
remote:          - Removing phpunit/php-file-iterator (1.4.1)
remote:          - Removing phpunit/php-token-stream (1.4.8)
remote:          - Removing phpunit/php-timer (1.0.7)
remote:          - Removing phpunit/phpunit-mock-objects (2.3.8)
remote:          - Removing phpunit/php-text-template (1.2.1)
remote:          - Removing phpspec/prophecy (v1.6.0)
remote:          - Removing phpdocumentor/reflection-docblock (2.0.4)
remote:          - Removing doctrine/instantiator (1.0.5)
remote:          - Removing symfony/yaml (v3.0.3)
remote:          - Removing sebastian/comparator (1.2.0)
remote:          - Removing sebastian/diff (1.4.1)
remote:          - Removing sebastian/environment (1.3.5)
remote:          - Removing sebastian/exporter (1.2.1)
remote:          - Removing sebastian/recursion-context (1.0.2)
remote:          - Removing sebastian/global-state (1.1.1)
remote:          - Removing sebastian/version (1.0.6)
remote:          - Removing mockery/mockery (0.9.4)
remote:          - Removing hamcrest/hamcrest-php (v1.2.2)
remote:          - Removing fzaninotto/faker (v1.5.0)
remote:        Generating optimized autoload files
remote:        > php artisan clear-compiled
remote:        
remote:                                   
remote:          [ErrorException]         
remote:          Undefined variable: app  
remote:                                   
remote:        
remote:        Script php artisan clear-compiled handling the post-install-cmd event returned with an error
remote:        
remote:                              
remote:          [RuntimeException]  
remote:          Error Output:       
remote:                              
remote:        
remote:        install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-autoloader] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--ignore-platform-reqs] [--] [<packages>]...
remote:        
remote: 
remote:  !     Push rejected, failed to compile PHP app
remote: 
remote: Verifying deploy...
remote: 
remote: !   Push rejected to enigmatic-mesa-86827.
remote: 
To https://git.heroku.com/enigmatic-mesa-86827.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/enigmatic-mesa-86827.git'
git推送heroku主机
计数对象:4,完成。
增量压缩最多使用2个线程。
压缩对象:100%(2/2),完成。
写入对象:100%(3/3),293字节| 0字节/秒,完成。
总计3(增量1),重复使用0(增量0)
远程:正在压缩源文件。。。完成。
远程:建筑源:
远程:
远程:-->使用set buildpack heroku/php
远程:-->检测到PHP应用程序
远程:-->引导。。。
远程:-->安装平台软件包。。。
远程:-php(7.0.4)
远程:-ext mbstring(与php捆绑)
远程:-apache(2.4.18)
远程:-nginx(1.8.1)
远程:-->安装依赖项。。。
远程:作曲家版本1.0.0-beta1 2016-03-03 15:15:10
远程:
遥控器:!警告:Composer供应商目录是Git存储库的一部分。
远程:此目录不应受版本控制;只有你的
应添加远程:“composer.json”和“composer.lock”文件,这
远程:将让Composer在部署时处理依赖项的安装。
远程:要取消此通知,请首先从索引中删除该文件夹
远程:通过运行“git-rm--cached-vendor/”。
远程:接下来,编辑项目的“.gitignore”文件并添加文件夹
远程:“/vendor/”添加到列表中。
远程:有关更多信息,请参阅Composer常见问题解答:http://bit.ly/1rlCSZU
远程:
远程:加载包含包信息的composer存储库
远程:从锁文件安装依赖项
远程:-删除symfony/dom爬虫程序(v3.0.3)
远程:-删除symfony/css选择器(v3.0.3)
远程:-删除phpunit/phpunit(4.8.23)
远程:-删除phpunit/php代码覆盖率(2.2.4)
远程:-删除phpunit/php文件迭代器(1.4.1)
远程:-删除phpunit/php令牌流(1.4.8)
远程:-删除phpunit/php计时器(1.0.7)
远程:-删除phpunit/phpunit模拟对象(2.3.8)
远程:-删除phpunit/php文本模板(1.2.1)
远程:-删除phpspec/prophecy(v1.6.0)
远程:-删除phpdocumentor/reflection docblock(2.0.4)
远程:-删除条令/实例化器(1.0.5)
远程:-删除symfony/yaml(v3.0.3)
远程:-移除塞巴斯蒂安/比较仪(1.2.0)
远程:-移除sebastian/diff(1.4.1)
远程:-移除塞巴斯蒂安/环境(1.3.5)
远程:-移除塞巴斯蒂安/出口商(1.2.1)
远程:-删除sebastian/递归上下文(1.0.2)
远程:-删除塞巴斯蒂安/全局状态(1.1.1)
远程:-删除sebastian/版本(1.0.6)
远程:-删除模拟/模拟(0.9.4)
远程:-删除hamcrest/hamcrest php(v1.2.2)
远程:-删除Fzaninoto/faker(v1.5.0)
远程:生成优化的自动加载文件
远程:>php artisan clear已编译
远程:
远程:
远程:[错误异常]
远程:未定义变量:app
远程:
远程:
远程:脚本php artisan clear已编译,用于处理返回的带有错误的安装后cmd事件
远程:
远程:
远程:[运行时异常]
远程:错误输出:
远程:
远程:
远程:安装[--首选源代码][--首选区][--干运行][--开发][--无开发][--无插件][--无自定义安装程序][--无自动加载程序][--无脚本][--无进度][v | vv | vvv | verbose][o |--优化自动加载程序][a |--类映射权威][--忽略平台需求][--[]]。。。
远程:
远程:
遥控器:!推送被拒绝,未能编译PHP应用程序
远程:
远程:正在验证部署。。。
远程:
遥控器:!推送至enigmatic-mesa-86827。
远程:
到https://git.heroku.com/enigmatic-mesa-86827.git
! [远程拒绝]主机->主机(拒绝预接收挂钩)
错误:无法将某些引用推送到'https://git.heroku.com/enigmatic-mesa-86827.git'

控制您的“composer.json”和“composer.lock”文件

我该怎么做?问题出在您的文件中。下载新的laravel文件并尝试安装它,您将看到您的问题您收到一个错误“stackoverflow要求我为这个问题添加更多细节,它不会发布。”来自git?这是一个非常奇怪的错误。。。请考虑编辑你的问题,删除无关的信息,并添加更多关于你何时/如何得到问题的信息。这就是苏要求你做的事。