aboutsummaryrefslogtreecommitdiff
path: root/server/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/main.rs')
-rw-r--r--server/src/main.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/src/main.rs b/server/src/main.rs
index 73d90a4..2b8b91a 100644
--- a/server/src/main.rs
+++ b/server/src/main.rs
@@ -11,6 +11,7 @@ use federation::Federation;
use jellybase::CONF;
use jellyremuxer::RemuxerContext;
use routes::build_rocket;
+use tokio::fs::create_dir_all;
pub mod database;
pub mod federation;
@@ -29,6 +30,7 @@ fn main() {
.block_on(async_main())
}
async fn async_main() {
+ create_dir_all(&CONF.cache_path).await.unwrap();
let remuxer = RemuxerContext::new();
let database = Database::open(&CONF.database_path).unwrap();
let federation = Federation::initialize();