temporary set env var DATABASE_URL in code

This commit is contained in:
someone 2024-05-02 09:59:42 +02:00
parent acb538eaea
commit 1d85839237

View file

@ -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