Fundamentals

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.json with workspaces, or pnpm-workspace.yaml).
  • The first level of the folders apps, packages, services, examples, tools, libs, backend and frontend.

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.

acme/shop @ main
apps/web
Next.js
services/api
JavaScript
services/worker
Go, unsupported
select
copperfox
copperfox.lilylabs.app
acme/shop @main
cinderrock
cinderrock.lilylabs.app
acme/shop @main
A monorepo with three roots. Go is detected but cannot be deployed yet.

See Supported frameworks.

Name and slug

  • The name defaults to the folder of the root, for example web for apps/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 address copperfox.lilylabs.app and 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

Queuedwaiting
Buildingbuilding
Rolling outdeploying
Livedeployed
Status of an app on the canvas. The CLI shows the phase below each status.
StatusDescription
QueuedConfigured and waiting for the build
BuildingBuild in progress
BuiltBuild finished, waiting for placement
Rolling outStarting on a LILY machine
LiveRunning and reachable at its address
PausedStopped. Deployment and settings are kept.
FailedBuild or rollout failed. The app overview shows the reason.
WorkingA 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:

ActionEffectCLI
StopStops the app. Deployment, variables and domains are kept.lly stop
StartStarts a stopped app without rebuildinglly start
RestartRestarts the current deploymentlly restart
RedeployFetches the latest commit of the branch, builds and rolls outlly 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.

On this page