adding LANG LC_ALL PYTHONIOENCODING UTF-8 (#22928)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
e0fe158f0b
commit
d776a7cde7
5 changed files with 23 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue