testnet-laconicd-stack/stack-orchestrator/config/laconic-faucet/start-server.sh
2024-07-17 15:04:21 +05:30

22 lines
382 B
Bash

#!/bin/bash
set -e
if [ -n "$CERC_SCRIPT_DEBUG" ]; then
set -x
fi
set -u
yarn install
toml_file = "/app/environments/local.toml"
# Set faucet key from env
faucet_key = ${CERC_FAUCET_KEY}
# Update the faucetKey in local.toml
sed -i "s/faucetKey = \"\"/faucetKey = \"$faucet_key\"/" "$toml_file"
echo "Updated faucetKey in local.toml"
# Start node-js server
yarn start-faucet