working deploy
This commit is contained in:
@@ -120,7 +120,6 @@ lib-features = ["hydrate"]
|
|||||||
# Optional. Defaults to false.
|
# Optional. Defaults to false.
|
||||||
lib-default-features = false
|
lib-default-features = false
|
||||||
|
|
||||||
#bin-target-triple = "aarch64-unknown-linux-gnu"
|
|
||||||
|
|
||||||
tailwind-input-file = "input.css"
|
tailwind-input-file = "input.css"
|
||||||
tailwind-config-file = "tailwind.config.js"
|
tailwind-config-file = "tailwind.config.js"
|
||||||
|
#in-target-triple = "aarch64-unknown-linux-gnu"
|
||||||
|
|||||||
7
Makefile
7
Makefile
@@ -1,8 +1,11 @@
|
|||||||
deploy:
|
deploy:
|
||||||
|
npx tailwindcss -i ./input.css -o ./style/output.css
|
||||||
|
tac Cargo.toml | sed '1s/^.//' | tac > fichier_temp.txt && mv fichier_temp.txt Cargo.toml
|
||||||
cargo leptos build
|
cargo leptos build
|
||||||
#cargo leptos build --release
|
#cargo leptos build --release
|
||||||
|
tac Cargo.toml | sed '1s/^/#/' | tac > fichier_temp.txt && mv fichier_temp.txt Cargo.toml
|
||||||
ssh raspiwork "sudo systemctl stop rust_leptos.service"
|
ssh raspiwork "sudo systemctl stop rust_leptos.service"
|
||||||
|
#scp target/aarch64-unknown-linux-gnu/release/rust_leptos raspiwork:/var/www/rust_leptos/rust_leptos
|
||||||
scp target/aarch64-unknown-linux-gnu/debug/rust_leptos raspiwork:/var/www/rust_leptos/rust_leptos
|
scp target/aarch64-unknown-linux-gnu/debug/rust_leptos raspiwork:/var/www/rust_leptos/rust_leptos
|
||||||
#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/
|
||||||
scp -r target/site raspiwork:/var/www/rust_leptos/site/
|
|
||||||
ssh raspiwork "sudo systemctl start rust_leptos.service"
|
ssh raspiwork "sudo systemctl start rust_leptos.service"
|
||||||
|
|||||||
@@ -11,9 +11,9 @@ pub fn App() -> impl IntoView {
|
|||||||
view! {
|
view! {
|
||||||
<Stylesheet href="/pkg/rust_leptos.css"/>
|
<Stylesheet href="/pkg/rust_leptos.css"/>
|
||||||
|
|
||||||
<Title text="Welcome to Leptos"/>
|
<Title text="Welcome to Leptos"/>
|
||||||
|
|
||||||
<div class="dark:bg-black dark:text-lime-500 dark:hover:text-lime-400 h-screen flex flex-col">
|
<div class="dark:bg-black dark:text-lime-500 dark:hover:text-lime-400 h-screen flex flex-col">
|
||||||
<Router>
|
<Router>
|
||||||
<nav class="flex gap-5 px-2 py-1 ">
|
<nav class="flex gap-5 px-2 py-1 ">
|
||||||
<a href="/">Home</a>
|
<a href="/">Home</a>
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user