added config file to task
Some checks failed
Build and Release Docker Images / create-release (push) Has been skipped
Build and Release Docker Images / build-and-push (./frontend, Dockerfile, my-website-v2_frontend) (push) Failing after 17m2s
Build and Release Docker Images / build-and-push (./backend, task/Dockerfile, my-website-v2_task) (push) Failing after 24m27s
Build and Release Docker Images / build-and-push (./backend, public/Dockerfile, my-website-v2_public) (push) Failing after 22m5s

This commit is contained in:
2025-07-19 22:26:52 -04:00
parent 4f8e7a654c
commit 4762a28cc2
2 changed files with 13 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
use std::path::PathBuf;
pub fn config() -> Configuration {
Configuration {
env: dotenvy::dotenv(),
}
}
pub struct Configuration {
env: Result<PathBuf, dotenvy::Error>,
}

View File

@@ -7,7 +7,7 @@ use std::time::Duration;
use storage::services::aws; use storage::services::aws;
use tasks::*; use tasks::*;
//mod config; mod config;
mod tasks; mod tasks;
mod utils; mod utils;
@@ -52,7 +52,7 @@ pub struct TaskJob {
async fn main() { async fn main() {
println!("Hello, world!"); println!("Hello, world!");
dotenvy::dotenv().unwrap(); let _ = config::config();
// setup database // setup database
let database_url = let database_url =