You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

GCP App Engine部署debug-server报错:需先上传default服务版本

解决App Engine首次部署必须先上传default服务的问题

方法1:修改临时配置文件手动部署default服务

  • 进入脚本生成的临时目录(示例:cd /tmp/tmp.wtPjxgoyOe)
  • 复制并修改配置文件:
    cp debug.yaml app.yaml
    sed -i 's/service: debug-server/service: default/' app.yaml
    
  • 执行default服务部署:
    gcloud app deploy app.yaml --project lXXXXXXX-web
    
  • 部署完成后,再重新运行原setup脚本或部署debug-server服务即可

方法2:重新运行setup脚本调整配置

  • 重新执行官方配置脚本:
    bash -c "$(curl -fsSL https://googletagmanager.com/static/serverjs/setup.sh)"
    
  • 在配置流程中,将服务名称设置为default,完成配置后执行部署;部署完default服务后,再重新运行脚本配置并部署debug-server服务

关键说明

  • App Engine新应用的首个部署服务必须是default,后续才能部署其他命名服务(如debug-server)
  • 完成default服务部署后,原debug-server的部署错误会自动消失

内容的提问来源于stack exchange,提问作者KicksTerz

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.07 17:53:28