【问题标题】:Heroku deployment error: No runtime requirementsHeroku 部署错误:没有运行时要求
【发布时间】: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


【解决方案1】:

所以,我通过添加解决了这个 Runtime 警告 require: ^7.0.0 在 composer.json 中。

感谢@ElliottFrisch 提供的提示。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-04-25
    • 2012-07-09
    • 2022-08-07
    • 1970-01-01
    • 1970-01-01
    • 2020-07-10
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多