parent
69a9eb4d9d
commit
c3d22f8e89
2 changed files with 5 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
FROM rust:buster as builder
|
||||
FROM rust:buster AS builder
|
||||
|
||||
RUN rustup default nightly
|
||||
|
||||
|
|
|
@ -20,12 +20,14 @@ async fn launch() -> _ {
|
|||
sqlx::migrate!("./migrations").run(pg).await.unwrap();
|
||||
}
|
||||
|
||||
let archive = arc.clone();
|
||||
if std::env::var("OLLAMA_URL").is_ok() {
|
||||
EmbedStore::generate_embeddings_for(&arc).await;
|
||||
tokio::spawn(async move {
|
||||
EmbedStore::generate_embeddings_for(&archive).await;
|
||||
});
|
||||
}
|
||||
|
||||
let archive = arc.clone();
|
||||
|
||||
tokio::spawn(async move {
|
||||
favicon::download_favicons_for_sites(&archive.domains()).await;
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue