mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-22 18:17:39 +08:00
feat: Add a simple script to remote compile
This commit is contained in:
parent
e43dce7274
commit
10af32bf4b
17
remote-compile.sh
Normal file
17
remote-compile.sh
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
# stop at first error
|
||||
set -ex
|
||||
|
||||
ssh remote-compilation << EOF
|
||||
set -ex
|
||||
|
||||
cd Documents/raptor-rs
|
||||
cargo build --release --bin raptor-http
|
||||
|
||||
tar czf raptor.tar.gz -C target/release raptor-http
|
||||
EOF
|
||||
|
||||
scp remote-compilation:Documents/raptor-rs/raptor.tar.gz /etc/raptor/
|
||||
|
||||
tar xzf /etc/raptor/raptor.tar.gz -C /etc/raptor/
|
Loading…
Reference in New Issue
Block a user