Files
socaichat/langgraph/startup.sh
T
gongzhiyongandClaude Opus 4.6 48c9e0c854 fix: revert to langgraphjs dev mode to restore Azure service
server.ts production mode crashes on startup (exit code 1).
Revert to langgraphjs dev until startServer() compatibility is resolved.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-12 22:51:02 +08:00

17 lines
483 B
Bash

#!/bin/bash
set -e
echo "=== LangGraph Server Startup ==="
cd /home/site/wwwroot
# Ensure .env exists (may be empty; real config comes from Azure App Settings)
touch .env
mkdir -p .langgraph_api
# Pre-create .gitignore entry to prevent tsx watch restart loop
grep -q '.langgraph_api' .gitignore 2>/dev/null || echo '.langgraph_api' >> .gitignore
echo "Starting LangGraph server on port ${PORT:-8080}..."
exec npx langgraphjs dev --host 0.0.0.0 --port ${PORT:-8080} --no-browser