migrated .env to .config

This commit is contained in:
specCon18 2023-08-08 02:22:42 -04:00
parent 59cbf07099
commit 25f70e849b
2 changed files with 3 additions and 1 deletions

2
.config/.env Normal file
View file

@ -0,0 +1,2 @@
UPDATE_INTERVAL=12
PORT=8080

View file

@ -13,7 +13,7 @@ use cards::{setup_registry, get_data_update_interval};
#[tokio::main] #[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> { async fn main() -> Result<(), Box<dyn std::error::Error>> {
dotenv::dotenv().ok(); dotenv::from_filename(".config/app.env").ok();
let update_interval = get_data_update_interval()?; let update_interval = get_data_update_interval()?;
let registry = setup_registry()?; let registry = setup_registry()?;