Files
socweb/langgraph/startup.sh
T
gongzhiyongandClaude Sonnet 4.6 3263b15554 perf(deploy): pre-install node_modules in CI and enable always-on to fix slow cold start
- CI now runs pnpm install and includes node_modules in the zip artifact
- startup.sh simplified: removed pnpm install fallback, uses direct bin path instead of npx
- Azure Web App always-on enabled to prevent cold starts

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 15:55:38 +08:00

14 lines
313 B
Bash

#!/bin/bash
set -e
echo "=== LangGraph Server Startup ==="
cd /home/site/wwwroot
# Ensure langgraphjs dev prerequisites exist
touch .env
mkdir -p .langgraph_api
echo "Starting LangGraph server on port ${PORT:-8080}..."
exec ./node_modules/.bin/langgraphjs dev --host 0.0.0.0 --port ${PORT:-8080} --no-browser