Open 0x0a0d opened 2 years ago
In my case above, SERVICES cab be: **/product.service.[jt]s
for loading product service
https://github.com/moleculerjs/moleculer/blob/34431aeb634a323159c89aff19c619e9ec8cd438/src/runner.js#L396
@0x0a0d You can load services from a specific folder SERVICEDIR=services/a-group/
, there is no need to specify SERVICES
.
@0x0a0d You can load services from a specific folder
SERVICEDIR=services/a-group/
, there is no need to specifySERVICES
.
How if I only want to load test and product service?
@0x0a0d You can load services from a specific folder
SERVICEDIR=services/a-group/
, there is no need to specifySERVICES
.How if I only want to load test and product service?
SERVICEDIR=services
and SERVICES=a-group/test,b-group/products
@0x0a0d You can load services from a specific folder
SERVICEDIR=services/a-group/
, there is no need to specifySERVICES
.How if I only want to load test and product service?
SERVICEDIR=services
andSERVICES=a-group/test,b-group/products
yes, that was I meant. Documentation must be clear
I think your mean about env
SERVICES
at Services loading logic, is to allow the developer to load exactly one or more services according to the value set for it. But in the real world, I feel like it's a group of services instead of services. You can check my example https://stackblitz.com/edit/moleculer-project-demo-v6n8nd?file=services/a-group/test.service.jsconfig![image](https://user-images.githubusercontent.com/32500015/131219601-bf378c41-0b8f-40b9-8d7d-0a8c8785968e.png)
Results:![image](https://user-images.githubusercontent.com/32500015/131219593-0e02aeca-4b90-48fc-9987-fbf12ae425f8.png)
Expected: No services load
I'm submitting this because I think if you mean for it to actually load a group of services we should rename it SERVICESGROUP or if not, the site should be update to make it clear