#! /usr/bin/env bash # this only works on macos for now, cross compilation toolchain from https://github.com/messense/homebrew-macos-cross-toolchains set -e; cargo update; DOMAIN=evieippolito.com 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/evieippolito.com/; sudo systemctl restart evie"