From bc63f9cc41dfd5a8d58f483ef947735708a65463 Mon Sep 17 00:00:00 2001 From: philipp Date: Sun, 16 Jul 2023 18:34:30 +0200 Subject: [PATCH] enable svelte build --- src/main.rs | 2 ++ update.sh | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index ba95c4c..e677f93 100644 --- a/src/main.rs +++ b/src/main.rs @@ -10,6 +10,8 @@ extern crate rocket; #[cfg(feature = "rowing-tera")] #[launch] async fn rocket() -> _ { + use sqlx::SqlitePool; + env_logger::init(); let mut connection_options = SqliteConnectOptions::from_str("sqlite://db.sqlite").unwrap(); diff --git a/update.sh b/update.sh index 435adb3..e5668b2 100755 --- a/update.sh +++ b/update.sh @@ -5,9 +5,9 @@ cargo b -r cd frontend npm install npm run build -#cd .. -#cd rot_app -#npm install -#npm run build +cd .. +cd rot_app +npm install +npm run build sudo systemctl restart rot -#sudo systemctl restart rot-svelte +sudo systemctl restart rot-svelte