部署到 App Engine
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
在 Artifact Registry 中存储 App Engine 应用的依赖项。
- 在 Node.js 和 Python 应用中声明 Artifact Registry 中的依赖项。
- 利用 Cloud Build 将应用部署到 App Engine。
所需权限
- App Engine 柔性环境
- 如果 App Engine 柔性环境和 Artifact Registry 位于同一项目中,App Engine 默认服务账号有权从代码库中拉取容器。
- 如果您还使用 Cloud Build 将应用容器化并将其存储在 Artifact Registry 中,请向 Cloud Build 服务账号授予 Artifact Registry Writer 角色。
- App Engine 标准环境:
- App Engine 标准环境使用 Cloud Build 服务账号构建和部署应用,包括集成存储在 Artifact Registry 中的依赖项。
- 如果 App Engine 和 Artifact Registry 位于同一Google Cloud 项目中,则服务账号具有从代码库下载所需的权限。
- 如果 App Engine 和 Artifact Registry 位于不同的项目中,您必须向服务账号授予代码库访问权限。
- 如需提供下载依赖项的只读访问权限,请向 Cloud Build 服务账号授予 Artifact Registry Reader 角色。
- 如果您还使用 Cloud Build 将工件上传到代码库,请向 Cloud Build 服务账号授予 Artifact Registry Writer 角色。
对于标准环境应用,请参阅 App Engine 标准环境文档,了解 npm 和 Python 配置说明。
如需在使用 Cloud Build 运行的 build 中添加依赖项,请参阅与 Cloud Build 集成。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-02-06。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-02-06。"],[],[]]