Open dmitriid opened 8 years ago
@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
.
Awesome!
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: