当使用trapi部署到heroku时,出现错误h10

时间:2020-05-19 20:09:23

标签: heroku gatsby strapi

在将trapi部署到heroku时遇到问题。

控制台日志:

2020-05-19T19:35:55.006009 + 00:00 heroku [router]:at =错误代码= H10 desc =“应用程序崩溃”方法= GET路径=“ /”主机= strapi-inmobiliaria-gatsby.herokuapp .com request_id = 10184460-a1bf-4294-9f20-fe1a00f5fc75 fwd =“ 190.244.81.129” dyno = connect = service = status = 503 bytes = protocol = https 2020-05-19T19:35:56.538982 + 00:00 heroku [router]:at =错误代码= H10 desc =“应用程序崩溃”,方法= GET path =“ / favicon.ico”主机= strapi-inmobiliaria-gatsby.herokuapp .com request_id = fe1b2436-7a37-4f0b-a205-b305e3fe9f9f fwd =“ 190.244.81.129” dyno = connect =服务=状态= 503字节=协议= https 2020-05-19T19:47:08.413066 + 00:00 heroku [router]:at =错误代码= H10 desc =“应用程序崩溃”方法= GET路径=“ /”主机= strapi-inmobiliaria-gatsby.herokuapp.com request_id = e8a7aaeb-4b2c-4d01-b3c0-e2fc4f4e920b fwd =“ 190.244.81.129” dyno = connect =服务=状态= 503字节=协议= https 2020-05-19T19:47:09.073430 + 00:00 heroku [router]:at =错误代码= H10 desc =“应用程序崩溃”,方法= GET path =“ / favicon.ico”主机= strapi-inmobiliaria-gatsby.herokuapp .com request_id = 3b2fb8e7-bf0f-478c-adff-f15dab238548 fwd =“ 190.244.81.129” dyno = connect = service = status = 503字节= protocol = https“

我尝试使用端口1337

server.json:

{
  "host": "${process.env.HOST || '0.0.0.0'}",
  "port": "${process.env.PORT || 8080}",
  "production": true,
  "proxy": {
    "enabled": false
  },
  "cron": {
    "enabled": false
  },
  "admin": {
    "autoOpen": false
  }
}

procfile:

web:node config/environments/production/server.json

0 个答案:

没有答案