简体   繁体   English

Node / React应用程序不会在Heroku上部署

[英]Node/React app won't deploy on Heroku

I've tried everything I can think of and exhausted google searches. 我已经尽我所能,尝试了所有Google搜索。 I've already ruled out the most common problems (ex: not using process.env.PORT in app.listen). 我已经排除了最常见的问题(例如:未在app.listen中使用process.env.PORT)。

Here are the heroku logs: 以下是heroku日志:

2018-07-18T02:43:26.705491+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=limitless-river-42936.herokuapp.com request_id=78261d20-9656-4f24-9a50-6a8e90fe216f fwd="104.32.39.36" dyno= connect= service= status=503 bytes= protocol=https
2018-07-18T02:43:28.104845+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=limitless-river-42936.herokuapp.com request_id=dab234a8-b9d7-4bbe-aa2b-36e6c4b2fcc9 fwd="104.32.39.36" dyno= connect= service= status=503 bytes= protocol=https
Disconnected from log stream. There may be events happening that you do not see here! Attempting to reconnect...

And here is the server.js file 这是server.js文件

Any help would be greatly appreciated! 任何帮助将不胜感激!

It turns out the log files weren't showing all the errors for some reason -- there was a typo in one of my imports. 事实证明,由于某种原因,日志文件未显示所有错误-我的一个导入文件中有错字。 :) :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM