Skip to content
LazyFrog

service

Defines and runs your app's services (web servers, APIs, background workers, scheduled jobs and static sites), and restarts or stops them.

Manage services · Can change or delete · actions: set, remove, restart, stop, run

Change the project's services (services.json) and run them. action "set": add a service, or change one (the fields given are merged into its definition; a new one needs type web|api|worker|cron|static). Fields: dev = preview command, build, start = production command, port, healthcheck_path, env, schedule for cron, dir and spa for static. The file is validated and reloaded, and invalid definitions are refused with the reason. "remove": delete a service. "restart": restart one (or start one that was stopped). "stop": stop one preview service for a while, e.g. the dev server while a build needs its memory; it stays stopped until "restart", or until the workspace sleeps and wakes. "run": run a service's command once now and return its output (it isn't written to the service's log).

For your AI: this page as Markdown · llms.txt