Skip to main content

default_data_dir

Function default_data_dir 

Source
pub fn default_data_dir() -> Result<PathBuf>
Expand description

Return the default local data directory for this service.

Pattern §25 + §28: The same .env and config.toml in ~/.<service>/ work for both Docker and bare-metal deployment without modification.

EnvironmentPath
Container/data (bind-mounted from host)
Bare-metal~/.soma (user home dir)

The name should match the docker-compose.yml volume mount source.