**/*.rs.bk
backend/data/recipes.sqlite
/deploy-to-pi.ps1
+style.css.map
\ No newline at end of file
--- /dev/null
+use std::process::Command;
+
+fn main() {
+ println!("cargo:rerun-if-changed=style.scss");
+
+ Command::new("sass")
+ .arg("./style.scss")
+ .arg("./static/style.css")
+ .output()
+ .expect("Unable to compile SASS file, install SASS, see https://sass-lang.com/");
+}
\ No newline at end of file
|row| Ok(dbg!("test"))\r
)\r
}\r
+\r
+ pub fn get_all_recipes() {\r
+\r
+ }\r
}
\ No newline at end of file
fn main_page(query: Query<Request>) -> HttpResponse {
- let main_template = MainTemplate { test: &"*** test 2 ***" };
+ let main_template = MainTemplate { test: &"*** test ***" };
let s = main_template.render().unwrap();
HttpResponse::Ok().content_type("text/html").body(s)
+++ /dev/null
-@font-face{font-family: Roobert; font-weight:400; src:url(Roobert-Regular.woff2) format("woff2"); }
-@font-face{font-family:Roobert; font-weight:600; src:url(Roobert-SemiBold.woff2) format("woff2"); }
-@font-face{font-family:Roobert; font-weight:700; src:url(Roobert-Bold.woff2) format("woff2"); }
-
-* {
- margin: 50px;
- padding: 0px;
-}
-
-body {
- font-size: 18px;
- font-family: Roobert, Helvetica Neue, Helvetica, Arial, sans-serif;
- text-shadow: 2px 2px 2px rgb(0, 0, 0);
- text-align: center;
- line-height: 18px;
- color: rgb(255, 255, 255);
- background-color: rgb(24, 24, 27);
- margin: 0px;
-}
-
-img {
- border: 0px;
-}
\ No newline at end of file
--- /dev/null
+@font-face{font-family: Fira Code; font-weight:200; src:url(FiraCode-Light.woff2) format("woff2"); }
+@font-face{font-family: Fira Code; font-weight:400; src:url(FiraCode-Regular.woff2) format("woff2"); }
+@font-face{font-family: Fira Code; font-weight:600; src:url(FiraCode-SemiBold.woff2) format("woff2"); }
+@font-face{font-family: Fira Code; font-weight:700; src:url(FiraCode-Bold.woff2) format("woff2"); }
+
+* {
+ margin: 50px;
+ padding: 0px;
+}
+
+body {
+ font-size: 18px;
+ font-family: Fira Code, Helvetica Neue, Helvetica, Arial, sans-serif;
+ text-shadow: 2px 2px 2px rgb(0, 0, 0);
+ text-align: center;
+ line-height: 18px;
+ color: rgb(255, 255, 255);
+ background-color: rgb(24, 24, 27);
+ margin: 0px;
+}
+
+img {
+ border: 0px;
+}
\ No newline at end of file
<h1>{{ test }}</h1>
</div>
<p>Text to test the new font.</p>
+ <p>=> [|1, 2, 3|] <-</p>
</body>
</html>
\ No newline at end of file
cargo build --target arm-unknown-linux-gnueabihf --release
-# $a = Invoke-Expression ($ssh_command + "ls")
-Invoke-SSH("sudo systemctl stop recipes")
+Invoke-SSH "sudo systemctl stop recipes"
Copy-SSH -source "./target/arm-unknown-linux-gnueabihf/release/recipes" -destination "~/recipes/"
+
+Invoke-SSH "rm -rf recipes/static"
Copy-SSH -source "./backend/static/" -destination "~/recipes/"
-Invoke-SSH("chmod u+x recipes/recipes")
-Invoke-SSH("sudo systemctl start recipes")
+Invoke-SSH "chmod u+x recipes/recipes"
+Invoke-SSH "strip recipes/recipes"
+Invoke-SSH "sudo systemctl start recipes"
Write-Output "Deployment finished"