From 7ddbb8da04fc8cf70c93e36978f64929e42a85e4 Mon Sep 17 00:00:00 2001 From: zramsay Date: Thu, 9 Jan 2025 13:17:11 -0500 Subject: [PATCH] more stuff --- build-webapp.sh | 23 +++++++++++++++++++++++ config.yml | 8 ++++++++ 2 files changed, 31 insertions(+) create mode 100755 build-webapp.sh create mode 100644 config.yml diff --git a/build-webapp.sh b/build-webapp.sh new file mode 100755 index 0000000..0da1fa9 --- /dev/null +++ b/build-webapp.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +PKG_DIR="./" + +OUTPUT_DIR="${PKG_DIR}/dist" +DEST_DIR=${1:-/data} + +if [[ -d "$DEST_DIR" ]]; then + echo "${DEST_DIR} already exists." 1>&2 + exit 1 +fi + +npm config set @cerc-io:registry https://git.vdb.to/api/packages/cerc-io/npm/ +npm install -g @cerc-io/laconic-registry-cli + +npm run build + +if [[ ! -d "$OUTPUT_DIR" ]]; then + echo "Missing output directory: $OUTPUT_DIR" 1>&2 + exit 1 +fi + +mv "$OUTPUT_DIR" "$DEST_DIR" diff --git a/config.yml b/config.yml new file mode 100644 index 0000000..1bb7bcf --- /dev/null +++ b/config.yml @@ -0,0 +1,8 @@ +services: + registry: + rpcEndpoint: https://laconicd-sapo.laconic.com + gqlEndpoint: https://laconicd-sapo.laconic.com/api + userKey: + bondId: + chainId: laconic-testnet-2 + gasPrice: 0.001alnt