evie/deploy.sh

14 lines
507 B
Bash
Raw Normal View History

2024-11-14 16:55:04 -05:00
#! /usr/bin/env bash
# this only works on macos for now, cross compilation toolchain from https://github.com/messense/homebrew-macos-cross-toolchains
2024-11-14 17:47:45 -05:00
set -e;
2024-11-14 16:55:04 -05:00
cargo update;
2024-11-14 17:47:45 -05:00
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;
2024-11-14 16:55:04 -05:00
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"