Files
tilbudgivern/load_env.sh
T
alex 10473e8a32 feat: Add complete data import and incremental update scripts for Ordrestyring
- Implemented setup_ordrestyring_import.sh for initial database setup and data import from API.
- Created sync_ordrestyring_data.sh for incremental updates to the local database.
- Developed test_ordrestyring_import.js to validate API data import functionality.
- Added test_enhanced_quote_demo.js to demonstrate the enhanced quote system using hybrid data sources.
- Introduced test_ordrestyring_system.sh for comprehensive testing of the database system and API functionality.
- Enhanced logging and error handling across scripts for better traceability.
- Included analysis script creation for post-import data analysis.
2025-09-19 15:06:03 +02:00

20 lines
626 B
Bash
Executable File

#!/bin/bash
#
# Load Ordrestyring Environment Variables
# Source this file to load all environment variables
#
# Check if .env.ordrestyring exists
if [ -f "/home/alex/git/tilbudgivern/.env.ordrestyring" ]; then
echo "📝 Loading Ordrestyring environment variables..."
export $(grep -v '^#' /home/alex/git/tilbudgivern/.env.ordrestyring | xargs)
echo "✅ Environment variables loaded:"
echo " ORDRESTYRING_TOKEN: ${ORDRESTYRING_TOKEN:0:5}***"
echo " DB_HOST: $DB_HOST"
echo " DB_USER: $DB_USER"
echo " DB_NAME: $DB_NAME"
else
echo "❌ .env.ordrestyring file not found"
exit 1
fi