2016-07-27 40 views
1

我试图部署在Heroku上一个PHP应用程序,但我得到以下错误:Heroku的部署错误:没有运行时要求

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包含它。

任何想法?

+1

这并没有显示错误,它告诉你选择一个运行时。如果你可以访问它,它会为你选择一个。 –

+0

@ElliottFrisch对不起。我不明白你在说什么。我对heroku很陌生。什么是运行时间,我如何选择一个?运行时如何与css无法正确显示? – padawanTony

+0

运行php的东西。在你的情况下,它是'php(7.0.9)'*或*'apache(2.4.20)'或*'nginx(1.8.1)'之一。最后两个都是网络服务器,你不需要其中的两个。 –

回答

1

因此,我通过在composer.json中添加 require: ^7.0.0来解决这个Runtime警告。

荣幸@ElliottFrisch提示。