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
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:
11
backend/task/src/config.rs
Normal file
11
backend/task/src/config.rs
Normal 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>,
|
||||||
|
}
|
@@ -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 =
|
||||||
|
Reference in New Issue
Block a user