Reputation: 359
I started a week before with jhipster and it is definitely up to the mark and provide great developer experience.
Initial project was created on my local laptop and following this link
I am able to do it successfully, but when I am trying the same command and steps on my production setup, it is not able to discover the gateway and services. I found "microservicePath" in gateway (file .yo-rc.json) and updated it. Still yo jhipster:docker-compose
is not able to discover service and gateway.
ls in parent directory:
docker-compose gateway microservice
yo jhipster:docker-compose
from docker-compose dir:
? Enter the root directory where your applications are located (../)
>> No microservice or gateway found in /home/ubuntu/
Please tell if something else also needed to be updated on prod box.
- Thank you.
Upvotes: 0
Views: 368
Reputation: 740
The docker-compose subgen discover JHipster apps by looking for .Yo-rc.json files in all sub-directories of the path that is provided (relative or absolute). If you have the following folder layout :
And running yo jhipster: docker-compose
in the docker
folder.
You should enter "../" which is the default (so you can also directly hit enter) and then you will have the option to select both apps using "space".
Upvotes: 1