Function main

Source
pub fn main() -> Result<()>
Expand description

Main function to start the server.

Tracing is initialized based on the build profile. debug for debug builds and info for release builds. For debug builds, the logs are printed in a human-readable format. For release builds, the logs are printed in a JSON format.

Config is also loaded from the .env file using load_config().