Deployments
The stages of a deploy, failure reasons, redeploys and snapshots.
A deployment is a build of an app that runs on a LILY machine. Each app has at most one live deployment. When a new deployment goes live, the previous one is marked superseded.
Step by step: Deploy an app.
Deployments are created by the pipeline of a source. The pipeline runs when the source is added and on every redeploy.
Stages
| Stage | Description | Limit |
|---|---|---|
| Fetch | Downloads the repository at the branch as an archive. Connected repositories are fetched through your GitHub connection, public repositories by URL. A private repository added by URL requires an access token, which is used once and not stored. | 512 MiB |
| Detect | Finds the roots and their frameworks. Runs isolated without network access. | 5 min |
| Select | Pauses until you choose the roots to deploy. | |
| Analyze | Proposes environment variables, ports, databases and connections for each app. Runs isolated without network access. | 10 min |
| Configure | Pauses until you confirm. The configuration is accepted as a whole: if one value is invalid, nothing is saved and the invalid value is reported. LILY then creates the apps, assigns slugs and sets up variables, databases and connections. | |
| Build | Builds each app separately and compiles it to WebAssembly. Has network access to install dependencies. | 15 min |
| Roll out | Starts the build on a LILY machine. The app is live once it responds. |
Failures
A failed stage sets the source or app to Failed and records a reason. The reason starts with the failed stage:
| Prefix | Cause |
|---|---|
fetch: | Download failed, for example because of a wrong branch or a missing token |
build <root>: | Build failed. See the build log. |
deploy to cap: | The build could not be placed on a machine. "Cap" is the name LILY uses for a machine in command output. |
<slug> did not go live | The app was placed but did not start |
The build log is on the Log tab of the app. In the CLI, lly attach --build <slug> prints it. After fixing the cause, select Redeploy.
Step by step: The build failed and Built, but did not start.
Redeploy
Redeploy in the action bar of the app, or lly redeploy, fetches the latest commit of the source branch, builds it and rolls it out. If nothing changed, LILY reports the build as unchanged.
LILY does not deploy automatically on push. Running lly in a pipeline is described under CI/CD. Unattended pipelines are not possible yet.
Step by step: Redeploy and roll back.
Snapshots
A snapshot saves the files of a running app. A restore writes them back on the same machine. Both are available in the CLI: lly app snapshot and lly app restore. A snapshot is kept as long as one of the last 50 commands of the app references it.