adding LANG LC_ALL PYTHONIOENCODING UTF-8 (#22928)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
znn
2025-07-27 06:49:13 +05:30
committed by GitHub
parent e0fe158f0b
commit d776a7cde7
5 changed files with 23 additions and 0 deletions

View File

@@ -2,6 +2,11 @@
set -e
# Set UTF-8 encoding to address potential encoding issues in containerized environments
export LANG=${LANG:-en_US.UTF-8}
export LC_ALL=${LC_ALL:-en_US.UTF-8}
export PYTHONIOENCODING=${PYTHONIOENCODING:-utf-8}
if [[ "${MIGRATION_ENABLED}" == "true" ]]; then
echo "Running migrations"
flask upgrade-db