更新时间:2022-05-01 09:11:03
有你需要做的几件事情。
There are a couple of things you need to do.
的index.php
文件(这是PHP如何检测)或硬code这样的: Heroku的配置:添加BUILDPACK_URL = HTTPS://github.com/heroku/heroku-buildpack-php.git
Heroku的运行./php/bin/php --version
index.php
file (which is how PHP is detected) or hard-code it like this: heroku config:add BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-php.git
heroku run ./php/bin/php --version
要总结一下:
heroku config:add BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-php.git
heroku config:add LD_LIBRARY_PATH=/app/php/ext:/app/apache/lib
heroku run ./php/bin/php --version
调试这个一个有用的方法是来砸到运行的Heroku的赛道:的Heroku运行的bash
。这将让你闲逛,看到那里的东西是在和实验。
A useful way to debug this is to bash into the running Heroku dyno: heroku run bash
. That will let you poke around, see where things are at and experiment.