douping1825 2019-07-06 17:23
浏览 150

无法将html css和js app部署到heroku,“注意:composer.lock中不需要运行时; 使用PHP ^ 7.0.0“

I have a simple project which has just an html, a folder with a css file, another folder with a js file, and another with images. In order to deploy it to heroku, I read I had to create the index.php, require the home.html and create a composer.json with only a {} in it, as it says: Uploading a static site on Heroku?

When I use the command git push heroku master to deploy it, it complains about this:NOTICE: No runtime required in composer.lock; using PHP ^7.0.0., and the project is not available on the link provided.

If it helps, my project's structure is as simple as this:

enter image description here

I don't know if that Notice is just a warning, but I find it very strange that Heroku can't deploy such a simple project.

  • 写回答

2条回答 默认 最新

  • donglvmang8638 2019-07-06 17:26
    关注

    I'm not sure where you were suggested to use just {}, as the doc says to use the following within composer.json:

    {
      "require": {
        "php": "^7.2.0"
      }
    }
    

    https://devcenter.heroku.com/articles/php-support#php-runtimes

    评论

报告相同问题?

悬赏问题

  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊
  • ¥15 安装svn网络有问题怎么办