clouddreamai-cicd-setup 1.5.35 → 1.5.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -440,6 +440,8 @@ bash ci/generate-env.sh $ENV_TYPE
|
|
|
440
440
|
|
|
441
441
|
# 将 .env 中的本地地址替换为 host.docker.internal(容器内访问宿主机)
|
|
442
442
|
if [ -f ".env" ]; then
|
|
443
|
+
# 先转换 Windows 换行符为 Unix 格式
|
|
444
|
+
sed -i 's/\r$//' .env
|
|
443
445
|
sed -i 's/=localhost$/=host.docker.internal/g' .env
|
|
444
446
|
sed -i 's/=127\.0\.0\.1$/=host.docker.internal/g' .env
|
|
445
447
|
echo "✓ 已将本地地址转换为容器可访问的地址"
|