Closed mKeRix closed 6 years ago
It's normal behaviour because you didn't use any code which uses event loop (e.g. API gateway, or any transporter). If you don't define transporter and there is not any gateway, the services won't be called, so the process will exit.
Makes sense - thanks for clearing that up so quickly. :)
Prerequisites
Expected Behavior
The container running the moleculer app keeps running after startup.
Current Behavior
The container starts, but then exits immediately. Example logs:
Failure Information
The script still works fine when run on the console of the host machine directly. This is not an npm issue, as executing the runner directly yields the same issue. Only fix I found so far is supplying the
--instances
flag (with 1 worker in my case) to the moleculer runner.Steps to Reproduce
You can reproduce this with the init project:
The options I took:
Context
These are the versions I could reproduce the error on: