I have an issue when I call forever module in windows, it works fine except that my code is calling Cluster module , and I do "Cluster.fork()", the problem is that I got 2 empty consoles opened! like the image shows(2 because I have 2 CPUs) and when I close them, they re-open automatically(because of Forever). I also tested forever-win module with the same result. every thing is fine except that I dont want to show those consoles.
Note: I face this in windows only not Ubuntu
Note: I face this in windows only not Ubuntu
forever is quite dated, and pre-dates node cluster. I'd suggest using a more modern supervisor, like https://github.com/ strongloop/strong-supervisor that uses cluster natively (and there are others).
That alone might fix your problem, if its because of forever.
If its because your server is doing something, like spawning a child that triggers windows to spawn a console, then that alone won't help, and more info about what your code does will be needed. And your node version, etc.
댓글 없음:
댓글 쓰기