load dotenv only in debug builds
This commit is contained in:
parent
98305e7dee
commit
54d2f3081d
1 changed files with 3 additions and 1 deletions
|
|
@ -17,7 +17,9 @@ rust_i18n::i18n!("locales");
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() -> anyhow::Result<()> {
|
async fn main() -> anyhow::Result<()> {
|
||||||
dotenv().ok();
|
if cfg!(debug_assertions) {
|
||||||
|
dotenv().ok();
|
||||||
|
}
|
||||||
|
|
||||||
log_init();
|
log_init();
|
||||||
let db = db_init().await;
|
let db = db_init().await;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue