use db and log paths as target/debug for debug run
This commit is contained in:
parent
506a2287b9
commit
397178e856
2 changed files with 3 additions and 9 deletions
8
.gitignore
vendored
8
.gitignore
vendored
|
|
@ -1,9 +1,3 @@
|
|||
/target
|
||||
.env*
|
||||
*.json
|
||||
*.txt
|
||||
*.m4a
|
||||
*.mp3
|
||||
*.mp4
|
||||
*.db
|
||||
*.log*
|
||||
*.json
|
||||
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue