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
commit d776a7cde7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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