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>
17 lines
483 B
Bash
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
|