tractatus/.credential-vault/start-vault-server.sh
TheFlow ac2db33732 fix(submissions): restructure Economist package and fix article display
- Create Economist SubmissionTracking package correctly:
  * mainArticle = full blog post content
  * coverLetter = 216-word SIR— letter
  * Links to blog post via blogPostId
- Archive 'Letter to The Economist' from blog posts (it's the cover letter)
- Fix date display on article cards (use published_at)
- Target publication already displaying via blue badge

Database changes:
- Make blogPostId optional in SubmissionTracking model
- Economist package ID: 68fa85ae49d4900e7f2ecd83
- Le Monde package ID: 68fa2abd2e6acd5691932150

Next: Enhanced modal with tabs, validation, export

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-24 08:47:42 +13:00

41 lines
1.1 KiB
Bash
Executable file

#!/bin/bash
# Start Tractatus Credential Vault Server
set -e
VAULT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$VAULT_DIR"
echo "═══════════════════════════════════════════════════════════"
echo " TRACTATUS CREDENTIAL VAULT - STARTUP"
echo "═══════════════════════════════════════════════════════════"
echo ""
# Check if vault exists
VAULT_FILE="$HOME/Documents/credentials/vault.kdbx"
if [ ! -f "$VAULT_FILE" ]; then
echo "⚠️ Vault not found: $VAULT_FILE"
echo ""
echo "Create vault first:"
echo " ~/Documents/credentials/scripts/create-vault.sh"
echo ""
exit 1
fi
echo "✓ Vault found: $VAULT_FILE"
echo ""
# Check if node_modules exists
if [ ! -d "node_modules" ]; then
echo "📦 Installing dependencies..."
npm install
echo ""
fi
echo "🚀 Starting server..."
echo ""
# Start server
npm start