temporary set env var DATABASE_URL in code
This commit is contained in:
parent
acb538eaea
commit
1d85839237
1 changed files with 1 additions and 0 deletions
|
|
@ -18,6 +18,7 @@ async fn main() {
|
||||||
// To be configured via environment variables
|
// To be configured via environment variables
|
||||||
// choose from (highest to lowest): error, warn, info, debug, trace, off
|
// choose from (highest to lowest): error, warn, info, debug, trace, off
|
||||||
env::set_var("RUST_LOG", "trace"); // TODO: Remove to respect user configuration
|
env::set_var("RUST_LOG", "trace"); // TODO: Remove to respect user configuration
|
||||||
|
env::set_var("DATABASE_URL", "sqlite:test.db"); // TODO: move to .env
|
||||||
env_logger::init();
|
env_logger::init();
|
||||||
|
|
||||||
// Listen on all IPv4 and IPv6 interfaces on port 8200
|
// Listen on all IPv4 and IPv6 interfaces on port 8200
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue