- 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.
20 lines
626 B
Bash
Executable File
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
|