-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: ENOENT: no such file or directory, open 'XXXXX\server\src\config/application-d.yml' #96
Comments
Hi @ajoysinhaabbvie, |
I am using : [email protected] If i do rename application-dev.yml to application-d.yml then system is working . |
Attaching jdl file for your reference |
Maybe I have understand your problem.. Can you check what is the value of the node system variable NODE_ENV? It is used in the app starting: generator-jhipster-nodejs/generators/server/templates/server/src/config/config.ts.ejs Line 91 in 9276224
So to change it you can rewrite value in your env project file The value must be dev, prod or test. If it is the problem, I can provide in the startup a code check if the NODE_ENV value (that is the app profile) is allowed having a related application.yml |
Hi @ajoysinhaabbvie, any news??? |
we had the same problem so we changed: |
It is linked to #99 that has more details. |
Fix with #102 , I will release the 1.0.0-beta.3 |
Hi @ajoysinhaabbvie and @kosnkow , |
Describe the bug
After creation of nodebased microservice using jhipster import-jdl model-name.jdl --blueprints nodejs, on start of server "npm start" application is looking for a file name application-d.yml. where as application-dev.yml
To Reproduce
Steps to reproduce the behavior:
Application is giving error as below
[nodemon] starting
ts-node src/main.ts
Error: ENOENT: no such file or directory, open 'D:\microservices\services\usermicroservice\server\src\config/application-d.yml'
Expected behavior
application should start
Note : if you change the application-dev.yml into application-d.yml, then application is starting smoothly
The text was updated successfully, but these errors were encountered: