设置节点应用程序 [英] Setting Up a Node App

查看:81
本文介绍了设置节点应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我正在尝试设置Node.js网络应用。查看日志流,每当服务器尝试启动时,都会显示。

I am attempting to set up a Node.js web app. Looking at the log stream, whenever the server tries to start up, this shows up.


2019-04-22 18:18:04.270 ERROR - Container hackattackmesaaz_0对于网站hackattackmesaaz没有在预期的时间限制内开始。经过时间= 230.2214978秒
2019-04-22 18:18:04.270 ERROR - Container hackattackmesaaz_0 for site hackattackmesaaz did not start within expected time limit. Elapsed time = 230.2214978 sec

推荐答案





我们是否尝试ping PORT 8080?这里的问题是端口8080没有暴露,所以当我们尝试ping容器时,我们不会在容器正在监听的端口上ping。 



有几种方法可以解决这个问题。



1.使用Dockerfile中的EXPOSE指令公开端口8080.

2.使用值为"8080"的WEBSITES_PORT应用程序设置。暴露该端口。

Hi,

Are we trying to ping on PORT 8080? The problem here is that port 8080 is not exposed, so when we attempt to ping the container, we aren't pinging on a port on which the container is listening. 

There are a couple of ways to resolve this.

1. Use the EXPOSE instruction in your Dockerfile to expose port 8080.
2. Use the WEBSITES_PORT app setting with a value of "8080" to expose that port.

您可以参考下面提到的文章:

You can refer the below mentioned articles:

https://docs.microsoft.com/en-us/azure/devops/pipelines / tasks / deploy / azure-rm-web-app-deployment?view = azure-devops

https://blogs.msdn.microsoft.com/waws/2017/09/08/things- you-should-know-web-apps-and-linux /





这篇关于设置节点应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆