Skip to content

Commit 269e5f5

Browse files
committed
feat: move default db_path to storage folder
Azure Container Intances do not allow you to mount a single file. I've created a storage folder where we can put all the things we want to persist.
1 parent ca0e8af commit 269e5f5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@
66
/config.toml
77
/data.db
88
/.vscode/launch.json
9+
/storage/
10+
911

src/config.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ impl Default for Configuration {
9393
log_level: Option::from(String::from("info")),
9494
mode: mode::Mode::Public,
9595
db_driver: Driver::Sqlite3,
96-
db_path: String::from("data.db"),
96+
db_path: String::from("./storage/database/data.db"),
9797
announce_interval: 120,
9898
min_announce_interval: 120,
9999
max_peer_timeout: 900,
@@ -193,7 +193,7 @@ mod tests {
193193
let config = r#"log_level = "info"
194194
mode = "public"
195195
db_driver = "Sqlite3"
196-
db_path = "data.db"
196+
db_path = "./storage/database/data.db"
197197
announce_interval = 120
198198
min_announce_interval = 120
199199
max_peer_timeout = 900

0 commit comments

Comments
 (0)