更新小程序所有页面及配置文件,将项目名称从“Soul创业派对”更改为“卡若创业派对”,确保品牌一致性。
This commit is contained in:
@@ -491,13 +491,13 @@ def run_docker_build_local(root, env_file=".env.development"):
|
||||
|
||||
|
||||
def pack_docker_image(root):
|
||||
"""将 soul-api 与 redis 镜像一并导出为 tar.gz,服务器无需拉取"""
|
||||
"""仅导出 soul-api 镜像为 tar.gz(线上 Redis 已在运行,不再打包/加载)"""
|
||||
import gzip
|
||||
print("[3/5] 导出镜像为 tar.gz(soul-api + redis)...")
|
||||
print("[3/5] 导出镜像为 tar.gz(soul-api only)...")
|
||||
out_tar = os.path.join(tempfile.gettempdir(), "soul_api_image.tar.gz")
|
||||
try:
|
||||
r = subprocess.run(
|
||||
["docker", "save", "soul-api:latest", "docker.m.daocloud.io/library/redis:7-alpine"],
|
||||
["docker", "save", "soul-api:latest"],
|
||||
capture_output=True,
|
||||
timeout=180,
|
||||
cwd=root,
|
||||
@@ -512,7 +512,7 @@ def pack_docker_image(root):
|
||||
if not os.path.isfile(out_tar) or os.path.getsize(out_tar) < 1000:
|
||||
print(" [失败] 导出文件异常")
|
||||
return None
|
||||
print(" [成功] 导出完成: %.2f MB(soul-api + redis)" % (os.path.getsize(out_tar) / 1024 / 1024))
|
||||
print(" [成功] 导出完成: %.2f MB(soul-api only)" % (os.path.getsize(out_tar) / 1024 / 1024))
|
||||
return out_tar
|
||||
except subprocess.TimeoutExpired:
|
||||
print(" [失败] docker save 超时")
|
||||
|
||||
Reference in New Issue
Block a user