Server Usage Instructions

Parent: gdata-server/server

Quick Start

# Production server (port 8021)
./start_notes_server.sh

# Test server (port 8020)  
./start_test_server.sh

# Direct execution
python gdata_server.py

Environment Variables

• GDATA_SERVER_HTTP=1 - Force HTTP mode (for background execution)

• GDATA_SERVER_CONFIG - Path to YAML config file

• LOG_LEVEL - Logging level (DEBUG, INFO, WARNING, ERROR)

Dual Mode Operation

The server automatically detects execution mode:

• HTTP mode: Normal terminal execution starts uvicorn server

• STDIN mode: Pipe input triggers request/response protocol

• Background HTTP: Use GDATA_SERVER_HTTP=1 to force HTTP mode

version 1  ·  updated 2026-10-06