【问题标题】:heroku can't deploy but it's not any error message?heroku 无法部署,但它不是任何错误消息?
【发布时间】:2017-10-07 09:05:56
【问题描述】:

https://github.com/unnhao/ReactRealTimeChatTraining

我部署到heroku,构建日志没有出现任何错误

但是当我想访问这个https://moutalk.herokuapp.com/ 它显示应用程序错误

我在github上测试

git 克隆 npm 安装 npm 开始

但它可以运行!!!

发生了什么???

【问题讨论】:

    标签: node.js reactjs heroku web webpack


    【解决方案1】:

    看起来您正在使用端口3000,但实际上应该将其更改为

    var port = process.env.PORT || 8080; 并再次部署它..

    有关如何在 heroku 上部署的更多详细信息,请查看本教程

    https://scotch.io/tutorials/how-to-deploy-a-node-js-app-to-heroku

    【讨论】:

      猜你喜欢
      • 2017-07-08
      • 1970-01-01
      • 1970-01-01
      • 2021-06-05
      • 2018-03-09
      • 1970-01-01
      • 2016-09-01
      • 2011-03-25
      相关资源
      最近更新 更多