Publish a project live
r3_publish_livePublish an R3 project live: makes a RELEASE (a frozen copy) of the project as it is now and makes it the one its public live URL shows, for anyone. Only when the user asked for it. Changing the project does NOT change the live site; r3_publish_live does: on a project that is already live this is a publish update (a new release replaces the live one), and the answer names the release number and what changed since the previous live release. note (optional, up to 500 characters) is stored with the release. slug (optional, the first time a project goes live) is the project part of its public address (e.g. "my-game" for …//my-game: letters, numbers and dashes); without it R3 uses a free address (the project's name when free) and the answer says which. Once a project has been live its address never changes. Going live the FIRST time uses one of the live-project slots of the project owner's plan (an update uses none); going live needs a plan. When there is no plan or no room, nothing is published and the answer says how many live projects the plan allows, how many are used and where the user picks a plan. It publishes every change kept so far (yours and the user's: there is nothing to save first). r3_release_list shows the releases, r3_release_rollback makes an older one live again. Needs the publish:live right.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | Optional: what this release is, in a few words (up to 500 characters), e.g. "new cue and rules". | |
| slug | No | Optional, first go-live only: the project part of the public address, e.g. "my-game" (letters, numbers and dashes). Without it R3 uses a free address and says which. A project that has been live keeps its address: a different slug is refused. | |
| projectId | Yes | The project id (r3_project_list / r3_project_create). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| live | Yes | ||
| note | Yes | ||
| slug | Yes | ||
| answer | Yes | This answer in words: what was done, what R3 measured, decided or refused, and what to do next. The same text as the result's text block. Read it: the fields beside it are the data, this is the guidance. | |
| changes | Yes | ||
| liveUrl | Yes | ||
| embedCode | Yes | ||
| projectId | Yes | ||
| environment | Yes | ||
| firstGoLive | Yes | ||
| addressChosen | Yes | ||
| releaseNumber | Yes | ||
| previousNumber | Yes |