⌂
›
Learn
›
Running a Ruflet App
Running a Ruflet App
Ruflet's default development loop is intentionally simple.
Default run command
-function">ruflet run mainThis starts the Ruflet backend in mobile mode by default.
Targeting web or desktop
-function">ruflet run main --web
-function">ruflet run main --desktopWhat Ruflet does for you
- resolves
mainandmain.rb - checks the nearest
Gemfile - runs
bundle installif dependencies are missing - starts the local Ruflet backend
- prints connection information for the selected target
- opens a web or desktop client when appropriate
Port selection
You can override the default port:
-function">ruflet run main --port 9000If the requested port is busy, Ruflet will choose another available one and tell you which port it used.
Typical loop
- Start the app with
ruflet run. - Edit your Ruby files.
- Refresh or reconnect the client as needed.
- Repeat until the flow is right.
When to use ruflet debug
Use ruflet debug when you need to work with the underlying Flutter client more directly instead of staying in the normal Ruby-first loop.