Skip to content

Commit

Permalink
fix(annim): create search directory if does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Yesterday17 committed Sep 5, 2024
1 parent a956101 commit 44d3bca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions annim/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ async fn main() -> anyhow::Result<()> {
annim::migrator::Migrator::up(&database, None).await?;

let searcher_directory = std::env::var("ANNIM_SEARCH_DIRECTORY")?;
std::fs::create_dir_all(&searcher_directory)?;
let searcher = RepositorySearchManager::open_or_create(searcher_directory)?;

let schema = MetadataSchema::build(MetadataQuery, MetadataMutation, EmptySubscription)
Expand Down

0 comments on commit 44d3bca

Please sign in to comment.