laravel - 如何初始化 git repo,因为我在推送 laravel 应用程序时出错
问题描述
我在 phpstorm 平台上制作了一个 BotMan 应用程序。每当我添加 procfile 时推送到 heroku master 时,我都会收到这样的错误
Counting objects: 370, done.
Compressing objects: 100% (339/339), done.
Writing objects: 100% (370/370), 571.47 KiB | 3.38 MiB/s, done.
Total 370 (delta 148), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/php.tgz
remote:
remote: ! ERROR: Application not supported by this buildpack!
remote: !
remote: ! The 'heroku/php' buildpack is set on this application, but was
remote: ! unable to detect a PHP codebase.
remote: !
remote: ! A PHP app on Heroku requires a 'composer.json' at the root of
remote: ! the directory structure, or an 'index.php' for legacy behavior.
remote: !
remote: ! If you are trying to deploy a PHP application, ensure that one
remote: ! of these files is present at the top level directory.
remote: !
remote: ! If you are trying to deploy an application written in another
remote: ! language, you need to change the list of buildpacks set on your
remote: ! Heroku app using the 'heroku buildpacks' command.
remote: !
remote: ! For more information, refer to the following documentation:
remote: ! https://devcenter.heroku.com/articles/buildpacks
remote: ! https://devcenter.heroku.com/articles/php-support#activation
remote:
remote:
remote: More info: https://devcenter.heroku.com/articles/buildpacks#detection-failure
remote:
remote: ! Push failed
remote: Verifying deploy...
remote:
remote: ! Push rejected to finproj.
remote:
To https://git.heroku.com/finproj.git
! remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/finproj.git'`
我听说它与 git repo 有关。我不明白那是什么意思。谁能帮我?
解决方案
推荐阅读
- python-2.7 - 使用python2进行数据清洗
- mysql - 主机 localhost 不支持 SSL 连接
- javascript - 加载 PHP 页面的 Javascript 灯箱
- python - 为什么 winfo_width() 返回的按钮小部件尺寸比它看起来的尺寸大?
- docker - 有什么方法可以更改基础映像或服务,而不必再次构建整个应用程序?
- python-3.x - 如何在python中使用isdigit识别运算符?
- java - windows下使用java查找GPU规格
- android - 如何从右向左滑动视图?
- c# - Web服务文件流到字节[]到文件流到pdf失败C#
- c++ - 在特定条件下跳过 std::for_each 中的迭代