Creating and using the configuration file

We can now create a configuration file and run the server. Create the microservice.toml file in the root folder of the project and add the following line to it:

address = "0.0.0.0:9876"

Compile and start the service and you will see it has bound to that address:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.222.114.28