我正在尝试将我的php应用程序从github部署到heroku,但它不起作用.我有将php应用程序部署到heroku的经验,但出于某种原因,这次我遇到了麻烦.
这就是我所做的.
git push heroku master我的目录包含以下文件:
home.html
index.php
index.css
Run Code Online (Sandbox Code Playgroud)
这是我的index.php:Push rejected, failed to detect set buildpack heroku/php
这是我在第5步之后得到的:
Counting objects: 52, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (48/48), done.
Writing objects: 100% (52/52), 1.12 MiB | 1.23 MiB/s, done.
Total 52 (delta 20), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Using set buildpack heroku/php
remote:
remote: ! …Run Code Online (Sandbox Code Playgroud)