Releases: shopblocks/regex_env
Releases · shopblocks/regex_env
Version bump
Forgot to bump the version on the cargo.toml file. This fixes that.
No other changes.
Support for multiple env files
- Support for multiple env files
Breaking change:
To change your code your new references should be similar to:
let paths: &[& str] = &[
&"var/www/config/global/.env",
&format!("/var/www/config/{}/.env", id_num)
];
...
let storage_host = match env(r"^storage\.host=(.*)$", paths) {
Some(host) => host,
_ => return Ok(Response::with(Status::BadRequest)),
};
...