【发布时间】:2016-07-27 02:04:02
【问题描述】:
我正在尝试在 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 包含它。
有什么想法吗?
【问题讨论】:
-
这没有显示错误,它告诉您选择运行时。如果您可以访问它,它会为您挑选一个。
-
@ElliottFrisch 对不起。我不明白你在说什么。我是heroku的新手。什么是运行时,我该如何选择?以及如何与 css 相关的运行时无法正确显示?
-
运行 php 的东西。在您的情况下,它是
php (7.0.9)或apache (2.4.20)或nginx (1.8.1)之一。最后两个都是网络服务器,你不需要其中的两个。
标签: php heroku server composer-php web-deployment