1. A total of 4 environment variables were configured in Rancher. See Figure 1.

2. Checking the container logs, 2 environment variables are missing. See Figure 2.

3. As a result, the 2 missing environment variables in the configuration file were not replaced. See Figure 3.

4. I noticed that the 2 missing environment variables have the prefix: MOREFUN_. The production environment variables have the prefix: MOREFUN_CFC_. I decided to adjust the prefix, but they were still not replaced after the adjustment.
5. I decided to change the configuration file name from CONFIG_BOOTSTRAP_FILE to CONFIG_BOOT_FILE. They were still not replaced after the adjustment.
6. I checked the file: /config/init/change.log. app/common/boot/bootstrap.lua does not exist. See Figure 4.

[root@api-8464f5d654-zvf2r init]# cat change.log
MOREFUN_CFC_REDIS_HOST replace 154.8.144.199 -> /app/common/lib/redis.lua
MOREFUN_CFC_REDIS_PORT replace 6379 -> /app/common/lib/redis.lua
MOREFUN_CFC_REDIS_DB replace 21 -> /app/common/lib/redis.lua
MOREFUN_CFC_REDIS_PASSWORD replace Redis -> /app/common/lib/redis.lua
app/common/boot/bootstrap.lua does not exist
7. I edited the config0.sh file. I changed CONFIG_BOOT_FILE=app/common/boot/bootstrap.lua to CONFIG_BOOT_FILE=/app/common/boot/bootstrap.lua, adding the forward slash for the root directory.
# 记录日志
DIR=/config/init
# 配置文件
CONFIG_FILE=/app/common/lib/redis.lua
CONFIG_BOOT_FILE=/app/common/boot/bootstrap.lua
8. Checking the container logs, all 4 variables are now present. See Figure 5.

9. The 2 environment variables in the configuration file have been replaced. See Figure 6.

