Apps
An app is a deployable unit built from one directory of a repository, with its own address.
An app is built from one root, a directory in a repository. It has its own address, environment variables, ports and deployments.
Roots
LILY searches a repository for apps in two places:
- The repository root, unless it only contains a workspace definition (
package.jsonwithworkspaces, orpnpm-workspace.yaml). - The first level of the folders
apps,packages,services,examples,tools,libs,backendandfrontend.
Each match is a root, for example . or apps/web, with its detected framework. A scan returns at most 20 apps. To add an app in another location, enter its path in the Project step of the console.
See Supported frameworks.
Name and slug
- The name defaults to the folder of the root, for example
webforapps/web. You can change it while configuring the app. - The slug is assigned by LILY and consists of two words, for example
copperfox. It defines the addresscopperfox.lilylabs.appand does not change, even when the project is renamed.
The console and the CLI identify apps by slug: lly stop copperfox stops the app, and its console URL is platform.lilylabs.io/shop/apps/copperfox.
Status
| Status | Description |
|---|---|
| Queued | Configured and waiting for the build |
| Building | Build in progress |
| Built | Build finished, waiting for placement |
| Rolling out | Starting on a LILY machine |
| Live | Running and reachable at its address |
| Paused | Stopped. Deployment and settings are kept. |
| Failed | Build or rollout failed. The app overview shows the reason. |
| Working | A command, for example a restart, is in progress |
The CLI shows the phase (waiting, building, built, deploying, deployed, failed) and whether the app is running.
Actions
The action bar of the app overview provides these actions:
| Action | Effect | CLI |
|---|---|---|
| Stop | Stops the app. Deployment, variables and domains are kept. | lly stop |
| Start | Starts a stopped app without rebuilding | lly start |
| Restart | Restarts the current deployment | lly restart |
| Redeploy | Fetches the latest commit of the branch, builds and rolls out | lly redeploy |
An app runs one action at a time. During an action or a build, no other action can be started.
Delete an app
Settings > Delete app stops the app and deletes it with its deployments, variables, domains and connections. The slug is released. This cannot be undone. CLI: lly delete app.