You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This command launch the application. The main class we used creates a clustered Vert.x instance and read the configuration from src/conf/config.json. This configuration provides the HTTP port on which the REST service is published (35000).
RestQuoteAPIVerticle does not read any configuration
the server is started with a hardcoded :8080
If the reader is required to change configs (to add http.port) and add reading configs to the code, it's not stated anywhere.
However, even adding http.port to quote-generator/src/conf/config.json and config().getInteger("http.port", 8080) to RestQuoteAPIVerticle doesn't help.
When the service starts, it never reads the config, config() returns {}.
Request
Please extend the tutorial with:
a section on how config files are found by services (and how to place them in a different directory, or resources)
code and explanation (at least, for quote generator) showing what changes need to be done to configs for it to work as described in the tutorial
The text was updated successfully, but these errors were encountered:
@dmitriid The port issue has been fixed - it's now reading the port from the config file.
I will add a section about the 'config support'. It's there for simplification, but actually it does not simplify much.... To pass another configuration just use -conf path/to/config.json.
The problem
6.4 in the docs reads:
Unfortunately:
RestQuoteAPIVerticle
does not read any configuration:8080
If the reader is required to change configs (to add
http.port
) and add reading configs to the code, it's not stated anywhere.However, even adding
http.port
toquote-generator/src/conf/config.json
andconfig().getInteger("http.port", 8080)
toRestQuoteAPIVerticle
doesn't help.When the service starts, it never reads the config,
config()
returns{}
.Request
Please extend the tutorial with:
The text was updated successfully, but these errors were encountered: