From 3ecbbd4ad2a7767abc825ff4b5487d6cab0a9bb2 Mon Sep 17 00:00:00 2001 From: mykola2312 <49044616+mykola2312@users.noreply.github.com> Date: Thu, 29 Feb 2024 17:51:11 +0200 Subject: [PATCH] use db and log paths as target/debug for debug run --- .gitignore | 8 +------- src/bot/util.rs | 4 ++-- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index 1ef7f5d..957d65c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,3 @@ /target .env* -*.json -*.txt -*.m4a -*.mp3 -*.mp4 -*.db -*.log* \ No newline at end of file +*.json \ No newline at end of file diff --git a/src/bot/util.rs b/src/bot/util.rs index 6861774..b747931 100644 --- a/src/bot/util.rs +++ b/src/bot/util.rs @@ -1,13 +1,13 @@ use std::path::Path; #[cfg(debug_assertions)] -pub const VAR_LIB: &str = "."; +pub const VAR_LIB: &str = "target/debug"; #[cfg(not(debug_assertions))] pub const VAR_LIB: &str = "/var/lib/mk-dl-bot"; #[cfg(debug_assertions)] -pub const VAR_LOG: &str = "."; +pub const VAR_LOG: &str = "target/debug"; #[cfg(not(debug_assertions))] pub const VAR_LOG: &str = "/var/log/mk-dl-bot";