test deploy
This commit is contained in:
23
Makefile
23
Makefile
@@ -1,18 +1,19 @@
|
||||
deploy:
|
||||
npx tailwindcss -i ./input.css -o ./style/output.css --minify
|
||||
tac Cargo.toml | sed '1s/^.//' | tac > fichier_temp.txt && mv fichier_temp.txt Cargo.toml
|
||||
#npx tailwindcss -i ./input.css -o ./style/output.css --minify
|
||||
#tac Cargo.toml | sed '1s/^.//' | tac > fichier_temp.txt && mv fichier_temp.txt Cargo.toml
|
||||
#cargo leptos build
|
||||
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"
|
||||
scp target/aarch64-unknown-linux-gnu/release/rust_leptos raspiwork:/var/www/rust_leptos/rust_leptos
|
||||
#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"
|
||||
#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 -r target/site raspiwork:/var/www/rust_leptos/
|
||||
ssh raspiwork "sudo systemctl start rust_leptos.service"
|
||||
#scp -r target/site raspiwork:/var/www/rust_leptos/
|
||||
#ssh raspiwork "sudo systemctl start rust_leptos.service"
|
||||
ssh raspitipi 'cd /home/pi/scripts/rust_leptos && git pull origin main && make install'
|
||||
|
||||
install:
|
||||
cargo leptos build --release
|
||||
npx tailwindcss -i ./input.css -o ./style/output.css --minify
|
||||
wasm-pack build --target=web --no-default-features --features=hydrate
|
||||
sudo systemctl stop rust_leptos.service
|
||||
cp target/release/rust_leptos /var/www/rust_leptos/rust_leptos
|
||||
cp -r target/site /var/www/rust_leptos/
|
||||
cargo leptos build --release
|
||||
sudo systemctl start rust_leptos.service
|
||||
|
||||
Reference in New Issue
Block a user