Something went wrong. Try again.
Monorepo for Aesthetic.Computer aesthetic.computer
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455#!/usr/bin/env fish
# Build and deploy KidLisp feed# This script loads secrets from vault and runs the build
echo "๐จ Building KidLisp Feed"echo "========================"echo ""
# Load environment variables from vaultset vault_env /workspaces/aesthetic-computer/aesthetic-computer-vault/feed/.env
if test -f $vault_env echo "๐ฆ Loading secrets from vault..." # Export environment variables for fish (split on first = only, strip quotes) for line in (cat $vault_env | grep -v '^#' | grep '=') set -l parts (string split -m1 '=' $line) set -l val (string trim -c '"' $parts[2]) set -gx $parts[1] $val end echo "โ
Secrets loaded" echo ""else echo "โ Error: Vault environment file not found at $vault_env" echo " Please ensure aesthetic-computer-vault/feed/.env exists" exit 1end
# Check required variablesif not set -q FEED_API_SECRET echo "โ Error: FEED_API_SECRET not set" exit 1end
if not set -q MONGODB_CONNECTION_STRING echo "โ Error: MONGODB_CONNECTION_STRING not set" exit 1end
# Run the build scriptecho "๐ Running build script..."echo ""cd /workspaces/aesthetic-computer/feednode build-kidlisp-feed.mjs
if test $status -eq 0 echo "" echo "โ
Build complete!" echo "๐ View channel: https://feed.aesthetic.computer/api/v1/channels/$KIDLISP_CHANNEL_ID"else echo "" echo "โ Build failed with exit code $status" exit 1end