M
M
Magneto9032020-07-13 13:53:00
JavaScript
Magneto903, 2020-07-13 13:53:00

How to run a nodejs application in the background?

I have a simple nodejs script that starts a server that serves a page on port 8080.
This script does not output anything (to the console)
To compile this script into an executable (exe) file, I used the nexe
library. The library works fine, collects a file that runs without problems.
But when you run the exe file, the console (empty) opens, even though the script does not output anything.
5f0c3c48c6722373594390.png
Is it possible to somehow configure the script (perhaps there is some module for this) so that this console does not appear, but the application itself runs (in the background)?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergei Chamkin, 2020-07-13
@Sergei1337

https://stackoverflow.com/questions/4018154/how-do...
https://stackoverflow.com/questions/39887679/how-t...
https://pm2.io/
https://www. npmjs.com/package/forever

P
Pavel Stepanov, 2020-07-14
@pinkskin

Docker or screen

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question