Skip to content

Manage flutter run from serverpod start #5127

@vlidholt

Description

@vlidholt

Basically:

  • Run flutter run -d chrome (or flutter run -d web-server if --flutter-headless is passed) as a sub-process to serverpod start.
  • Pipe the output of flutter run to a new tab in the serverpod start TUI.
  • Monitor changes to the files in the Flutter app and trigger a hot reload on changes.
  • If a hot restart is triggered on serverpod start, also do a hot restart in the app (send r or R to stdin of flutter run).
  • Show a link to the app in the TUI.
  • Add some sort of config for if we're running the Flutter app (initially, this can be as simple as passing a --no-flutter flag to serverpod start. But in the longer term, we should have a settings screen.

Metadata

Metadata

Assignees

Labels

area: cliIssues related to the Serverpod CLI.enhancementNew feature or request
No fields configured for Feature.

Projects

Status
Done 🚀

Relationships

None yet

Development

No branches or pull requests

Issue actions