2023-04-26 13:59:54 +00:00
|
|
|
export CC_x86_64_unknown_linux_gnu=x86_64-unknown-linux-gnu-gcc
|
|
|
|
export CXX_x86_64_unknown_linux_gnu=x86_64-unknown-linux-gnu-g++
|
|
|
|
export AR_x86_64_unknown_linux_gnu=x86_64-unknown-linux-gnu-ar
|
|
|
|
export CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER=x86_64-unknown-linux-gnu-gcc
|
|
|
|
cargo build --release --target x86_64-unknown-linux-gnu
|
2023-04-26 19:09:24 +00:00
|
|
|
zip -r dist dist/
|
|
|
|
scp -i ~/Developer/kp/main-key-pair.pem $CARGO_TARGET_DIR/x86_64-unknown-linux-gnu/release/jl-backend deploy/Dockerfile dist.zip ubuntu@proyectosenconstruccion.com:~/executables/jl-backend/
|