BrickTracker/test-server.sh

18 lines
465 B
Bash
Raw Normal View History

2025-01-17 11:03:00 +01:00
#!/usr/bin/env sh
if [ -f ".env" ]
then
set -a
source ".env"
# Backward compatibility, RANDOM should not be used as an environment variable
# It is a magic variable maintained by some shells
if grep -q -i "^RANDOM=" ".env"
then
echo "You shouldn't use the RANDOM magic variable in your environment. Exporting BK_RANDOM instead."
export BK_RANDOM=`grep -m 1 -i "^RANDOM=" ".env" | cut -d "=" -f 2`
fi
fi
python3 app.py