eve-project-bootstrap
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseEve Project Bootstrap
Eve 项目快速搭建
Use this flow to connect an existing repo to Eve and get the first deploy running.
使用以下流程将现有代码仓库连接到Eve并完成首次部署。
Set the API Target
设置API目标地址
- Get the staging API URL from your admin.
- Create and use a profile:
bash
eve profile create staging --api-url https://api.eh1.incept5.dev
eve profile use staging- 从管理员处获取预发布环境(staging)的API地址。
- 创建并使用配置文件:
bash
eve profile create staging --api-url https://api.eh1.incept5.dev
eve profile use stagingCreate Org and Project
创建组织与项目
bash
eve org ensure my-org --slug myorg
eve project ensure --name "My App" --slug my-app --repo-url git@github.com:me/my-app.git --branch mainURL impact: These slugs determine your deployment URLs and K8s namespaces:
- URL: (e.g.,
{service}.{orgSlug}-{projectSlug}-{env}.{domain})api.myorg-my-app-staging.eh1.incept5.dev - Namespace: (e.g.,
eve-{orgSlug}-{projectSlug}-{env})eve-myorg-my-app-staging
Slugs are immutable — choose short, meaningful values.
Set defaults:
bash
eve profile set --org org_xxx --project proj_xxxbash
eve org ensure my-org --slug myorg
eve project ensure --name "My App" --slug my-app --repo-url git@github.com:me/my-app.git --branch mainURL影响说明: 这些slug将决定你的部署URL和K8s命名空间:
- URL格式:(示例:
{service}.{orgSlug}-{projectSlug}-{env}.{domain})api.myorg-my-app-staging.eh1.incept5.dev - 命名空间格式:(示例:
eve-{orgSlug}-{projectSlug}-{env})eve-myorg-my-app-staging
Slug是不可修改的,请选择简短且有意义的取值。
设置默认值:
bash
eve profile set --org org_xxx --project proj_xxxAdd the Manifest
添加清单文件
- Ensure is present and uses
.eve/manifest.yaml.schema: eve/compose/v1 - Use the skill for structure details.
eve-manifest-authoring
- 确保文件已存在,且使用
.eve/manifest.yaml。schema: eve/compose/v1 - 如需了解结构细节,请使用技能。
eve-manifest-authoring
First Deploy
首次部署
bash
undefinedbash
undefinedCreate environment if needed
如需创建环境
eve env create staging --project proj_xxx --type persistent
eve env create staging --project proj_xxx --type persistent
Deploy (requires --ref with 40-char SHA or a ref resolved against --repo-dir)
部署(需要--ref参数指定40位SHA值,或结合--repo-dir参数指定引用)
eve env deploy staging --ref main --repo-dir .
eve env deploy staging --ref main --repo-dir .
If the environment has a pipeline configured, this triggers the pipeline.
如果环境已配置流水线,此命令将触发流水线。
Use --direct to bypass pipeline and deploy directly:
使用--direct参数绕过流水线直接部署:
eve env deploy staging --ref main --repo-dir . --direct
undefinedeve env deploy staging --ref main --repo-dir . --direct
undefinedVerify
验证部署
bash
eve system health
eve job list --phase active
eve job follow <job-id>
eve job result <job-id>Access apps via .
{service}.{orgSlug}-{projectSlug}-{env}.{domain}bash
eve system health
eve job list --phase active
eve job follow <job-id>
eve job result <job-id>通过访问应用。
{service}.{orgSlug}-{projectSlug}-{env}.{domain}