mirror of
https://github.com/fluencelabs/examples
synced 2025-06-23 06:41:33 +00:00
Reorg (#10)
* init reorg * updated readme * fix CI * remove outdated ipfs-node example * add Readme * update readme, add config file Co-authored-by: folex <0xdxdy@gmail.com>
This commit is contained in:
20
archived/multi-service/scripts/deploy.sh
Normal file
20
archived/multi-service/scripts/deploy.sh
Normal file
@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# check `fcli` and `fldist` tools are installed or install them
|
||||
(command -v marine || cargo install marine) >/dev/null
|
||||
(command -v fldist || npm install -g @fluencelabs/fldist) >/dev/null
|
||||
|
||||
# build .wasm
|
||||
(
|
||||
cd backend
|
||||
marine build --release
|
||||
)
|
||||
|
||||
# check it .wasm was built
|
||||
WASM="backend/target/wasm32-wasi/release/curl_template.wasm"
|
||||
test -f "$WASM" || echo >&2 "Couldn't find $WASM"
|
||||
|
||||
# create a service from that .wasm
|
||||
CONFIG="$(pwd)/backend/BackendConfig.json"
|
||||
fldist new_service --modules "$WASM:$CONFIG" --name curl_template
|
Reference in New Issue
Block a user