工作流步骤

hosting.create

type: "hosting.create"

创建一个主机——网站、应用程序或函数。它保留一个地址;部署是一个单独的步骤。

kind and label requiredno approvalcertificate may wait
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

kindstring必填

site · app · function.

labelstring必填

一个人读的名字。

slugstring

地址的第一部分,从标签上取出

{ id: "host", type: "hosting.create", config: { kind: "site", label: "{{input.name}}" } }
{"id": "host", "type": "hosting.create", "config": {"kind": "site", "label": "{{input.name}}"}}

输出

{{steps.host.output.host}}          // the slug
{{steps.host.output.url}}
{{steps.host.output.certificate}}   // "none" | "pending" | "active"
"{{steps.host.output.host}}"          # the slug
"{{steps.host.output.url}}"
"{{steps.host.output.certificate}}"   # "none" | "pending" | "active"

尚未准备好的地址

尚未结结结证书是指地址拒绝连接

不是停机,而是等待。一个链条创建了一个主机, 并立即获取它将会失败。 在它们之间放一个等待步骤, 或者在依赖地址之前检查证书 。

创建不是发布

网络上还没有消息, hosting.deploy 出版的一步, 需要人类的上游。

计划决定

计划没有主机,所以拒绝创建,命名计划。在围绕计划建立链条之前,应该知道。