Skip to content

Commit

Permalink
Make config errors more prominent
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ar committed Feb 20, 2024
1 parent ef83634 commit 020505c
Show file tree
Hide file tree
Showing 6 changed files with 314 additions and 51 deletions.
9 changes: 8 additions & 1 deletion bootstrapCeramic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ CTX="[bootstrapCeramic.sh]"
set -euo pipefail
trap catch ERR
catch() {
echo "$CTX script failed -- ensure CODEX_REPO_PATH and TOGGLE_CERAMIC are set in .env"
echo "$CTX script failed (are CODEX_REPO_PATH and TOGGLE_CERAMIC set in .env?)"
exit 1
}

Expand Down Expand Up @@ -43,6 +43,13 @@ fi

# Setup desci-codex and deploy composites
pushd "$CODEX_REPO_PATH"

# Check that the node admin secret is set up, otherwise the model ID's wont be correct
if [ ! -f "packages/composedb/admin_seed.txt" ]; then
echo "$CTX Composites need to be deployed with the ceramic node admin seed for the local node, as the model IDs aren't deterministic otherwise"
exit 1
fi

if [[ ! -d "node_modules" ]]; then
echo "$CTX installing deps desci-codex..."
npm ci
Expand Down
2 changes: 1 addition & 1 deletion nodes-lib/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ NODES_API_URL=http://localhost:5420
# NODES_API_URL=https://nodes-api-dev.desci.com

#!!!!!!!!!!
# REQUIRED: Set your API key (login to nodes-web-v2 locally, generate API key from profile page)
# REQUIRED: Set your API key (login to nodes-web-v2 locally/on dev, generate API key from profile page)
#!!!!!!!!!!
NODES_API_KEY=

Expand Down
254 changes: 254 additions & 0 deletions nodes-lib/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions nodes-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"url-safe-base64": "^1.3.0"
},
"devDependencies": {
"@desci-labs/desci-contracts": "^0.2.0-rc1",
"@types/mime-types": "^2.1.4",
"@types/node": "^20.11.5",
"typescript": "^5.3.3",
Expand Down
Loading

0 comments on commit 020505c

Please sign in to comment.