migrated .env to .config
This commit is contained in:
parent
59cbf07099
commit
25f70e849b
2 changed files with 3 additions and 1 deletions
2
.config/.env
Normal file
2
.config/.env
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
UPDATE_INTERVAL=12
|
||||||
|
PORT=8080
|
||||||
|
|
@ -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()?;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue