[英]Failed to deploy on Heroku, Unknown error message for me
Hi there;你好; I have built a application on Node.
我在 Node.js 上构建了一个应用程序。 Its operation is perfect, but when doing the deployment in Heroku it gives me this error
它的操作是完美的,但是在 Heroku 中进行部署时,它给了我这个错误
It tells me something about the path and favicon.ico, but I can't find a fault about that in particular.它告诉我一些关于路径和 favicon.ico 的信息,但我找不到特别的错误。 Please I need a little help.
请我需要一点帮助。 Thank you very much in advance
非常感谢您提前
EDIT1: My Varibles; EDIT1:我的变量; code and Heroku config
代码和 Heroku 配置
EDIT2编辑2
"scripts": {
"desarrollo": "concurrently \"npm run dev \" \"npm run watch\" ",
"dev": "nodemon ./index.js",
"start": "node index.js",
"watch": "webpack --w --mode development"
}
I have also tried:我也试过:
"start": "node ./index.js",
Maybe the error comes out there, I'm almost a novice in Heroku也许错误就在那里,我几乎是 Heroku 的新手
Your web server has to listen on the port specified by the PORT
environment variable, it can't just listen on any port it wants.您的 Web 服务器必须侦听
PORT
环境变量指定的PORT
,它不能只侦听它想要的任何端口。 Basically, in your code you want to listen on process.env.PORT
.基本上,在您的代码中,您想监听
process.env.PORT
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.