Skip to content

Releases: shopblocks/regex_env

Version bump

04 Oct 16:39
Compare
Choose a tag to compare

Forgot to bump the version on the cargo.toml file. This fixes that.

No other changes.

Support for multiple env files

04 Oct 16:28
Compare
Choose a tag to compare
Pre-release
  • 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)),
};

...