pub fn prepare(args: AppArgs) -> Result<PreparedApp>Expand description
Prepares the application for running.
This function performs the following steps:
- Finds free ports if not specified.
- Configures logging.
- Prints a start banner.
- Creates the data directory.
- Loads or generates the user’s identity.
- Prints identity information.
- Opens the database.
- Sets up storage encryption if enabled.
§Arguments
args- The command-line arguments.
§Errors
This function will return an error if any of the setup steps fail.