diff --git a/Makefile b/Makefile index 2fac671..3ecfe3a 100644 --- a/Makefile +++ b/Makefile @@ -9,3 +9,10 @@ deploy: #scp target/aarch64-unknown-linux-gnu/debug/rust_leptos raspiwork:/var/www/rust_leptos/rust_leptos scp -r target/site raspiwork:/var/www/rust_leptos/ ssh raspiwork "sudo systemctl start rust_leptos.service" + +install: + cargo leptos build --release + sudo systemctl stop rust_leptos.service + scp target/aarch64-unknown-linux-gnu/release/rust_leptos /var/www/rust_leptos/rust_leptos + scp -r target/site /var/www/rust_leptos/ + sudo systemctl start rust_leptos.service diff --git a/src/models/value.rs b/src/models/value.rs index 13d58fd..3885c5c 100644 --- a/src/models/value.rs +++ b/src/models/value.rs @@ -42,7 +42,7 @@ pub const OPTIONS: &[Option] = &[ #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)] pub struct Value { - id: i32, + id: i64, service: String, capteur: String, type_donnee: String,