12 lines
490 B
Bash
12 lines
490 B
Bash
|
#! /usr/bin/env bash
|
||
|
|
||
|
# this only works on macos for now, cross compilation toolchain from https://github.com/messense/homebrew-macos-cross-toolchains
|
||
|
|
||
|
cargo update;
|
||
|
|
||
|
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=x86_64-linux-gnu-gcc cargo build --release --target x86_64-unknown-linux-gnu;
|
||
|
|
||
|
scp target/x86_64-unknown-linux-gnu/release/evie kline@augustkline.com:/home/kline/;
|
||
|
|
||
|
ssh kline@augustkline.com "mv ~/evie /var/www/staging.evieippolito.com/; sudo systemctl restart evie-staging"
|