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