我正在尝试在 heroku 上部署 PHP 应用程序,但出现以下错误:
remote:
remote: -----> PHP app detected
remote: -----> Bootstrapping...
remote: -----> Installing platform packages...
remote: NOTICE: No runtime required in composer.json; requirements
remote: from dependencies in composer.lock will be used for selection
remote: - php (7.0.9)
remote: - apache (2.4.20)
remote: - nginx (1.8.1)
remote: -----> Installing dependencies...
显然只有 css 不工作,我觉得这很奇怪,因为我使用 w3.css 框架并且我通过 CDN 包含它。
有什么想法吗?
最佳答案
所以,我通过添加解决了这个 Runtime
警告
要求:composer.json 中的 ^7.0.0
。
感谢@ElliottFrisch 的提示。
关于php - Heroku 部署错误 : No runtime requirements,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38602528/