首页 文章

坠毁在heroku上

提问于
浏览
0

EDIT - I have found, in my Procfile there was a space betwen my colon and my code, Heroku could not read this space, it's work now =).

我的应用程序完全适用于开发,但在heroku推送后崩溃 .

我的控制台日志返回给我:

at = error code = H10 desc =“App crashed”method = GET path =“/ favicon.ico”host = desolate-wildwood-76797.herokuapp.com request_id = fwd =“fwd”dyno = connect = service = status = 503字节=协议= https 2018-05-22T23:15:39.338510 00:00 heroku [router]:at = error code = H10 desc =“App crashed”method = GET path =“/”host = desolate-wildwood-76797 .herokuapp.com request_id = fwd =“”dyno = connect = service = status = 503 bytes = protocol = https

但我删除了我的代码中的所有favicon调用,其他论坛解决方案不起作用...

怎么处理好吗?

1 回答

  • 1

    确保您的端口是:

    const port = process.env.PORT || 3000;
    

相关问题