nodejs-docs-hello-world | A simple nodejs application for docs | Azure library
kandi X-RAY | nodejs-docs-hello-world Summary
kandi X-RAY | nodejs-docs-hello-world Summary
A simple nodejs application for docs
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nodejs-docs-hello-world
nodejs-docs-hello-world Key Features
nodejs-docs-hello-world Examples and Code Snippets
Community Discussions
Trending Discussions on nodejs-docs-hello-world
QUESTION
I have a node app, that doesn't expose any port. It's just running some tasks in the background and returning some stuff onto the console that I occasionally need to look at.
I've deployed this onto Azure App Service - however it doesn't seem to run - in the logs I see
Waiting for response to warmup request for container xxx
I was wondering in my index.js I don't actually expose any port - namely there isn't a const server = http.createServer()
. Is this required from Azure's side or can I disable it?
So my index.js literally looks like:
...ANSWER
Answered 2020-Apr-06 at 03:00If you just want to run some tasks in the background, you can use webjob instead. It is also very convenient to check the output.
By the way, the only ports open for Web Apps are 80 and 443. We should use process.env.PORT
for nodejs app port. 1337
is for local test.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nodejs-docs-hello-world
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page