27 lines
595 B
Bash
27 lines
595 B
Bash
#!/bin/bash
|
|
|
|
# Source the environment file directly
|
|
. /env.sh
|
|
|
|
# Re-export all variables to ensure they're available to the Python script
|
|
export POSTGRES_USER
|
|
export POSTGRES_PASSWORD
|
|
export POSTGRES_DB
|
|
export POSTGRES_HOST
|
|
export POSTGRES_PORT
|
|
export POSTGRES_ENGINE
|
|
export POSTGRES_POOL_PRE_PING
|
|
export POSTGRES_POOL_SIZE
|
|
export POSTGRES_MAX_OVERFLOW
|
|
export POSTGRES_POOL_RECYCLE
|
|
export POSTGRES_POOL_TIMEOUT
|
|
export POSTGRES_ECHO
|
|
|
|
# Python environment variables
|
|
export PYTHONPATH
|
|
export PYTHONUNBUFFERED
|
|
export PYTHONDONTWRITEBYTECODE
|
|
|
|
# Run the Python script
|
|
/usr/local/bin/python /runner.py
|