Skip to content

Auto-start apps when pushed to viewport #307

@woltspace-jerpint

Description

@woltspace-jerpint

Problem

When an app isn't running and you open it in the viewport (via push-view or navigating to <app>.localhost:7777/), you get a blank page or error. You have to manually start the app first with curl -s -X POST http://localhost:7777/apps/<name>/start.

Proposal

The platform should auto-start an app when it's requested but not running. Two places this could hook in:

  1. Subdomain routing — when <app>.localhost:7777 gets a request and the app isn't running, start it before proxying
  2. push-view — when pushing an app URL to the viewport, detect it's an app subdomain and start it if needed

Either way, the user/wolt shouldn't have to remember to start the app separately.

Context

This came up during the woltspace-deck presentation workflow — opened the viewport and got nothing because the app wasn't running yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions