docker deploy

This commit is contained in:
OMGeeky
2024-04-21 23:25:49 +02:00
parent 6f1e6a0765
commit 9124395412
4 changed files with 99 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ async fn run() -> Result<()> {
.env()
.file("./settings.toml")
.file(shellexpand::tilde("~/twba/config.toml").to_string())
.file(std::env::var("TWBA_CONFIG").unwrap_or_else(|_| "~/twba/config.toml".to_string()))
.load()
.map_err(|e| {
error!("Failed to load config: {:?}", e);