Live Reload
Experience instant feedback. Soli's development server automatically detects changes and updates your browser without a restart.
Zero Configuration
Use the --dev flag to enable live reload. No browser extensions or complex build tools required.
How It Works
When you run the development server, Soli watches your project files. When a change is detected:
1. File Changed
You save a controller, view, or model file.
2. Recompile
Soli instantly re-parses and reloads the changed files in memory.
3. Refresh
The server notifies your browser via WebSocket to refresh the page.
Starting the Server
Use the CLI to start your app in development mode:
# Run with hot reload
soli serve . --dev
# Specify port
soli serve . --dev --port 8080
Styling with Tailwind
Soli handles asset compilation automatically. When you start the server with soli serve --dev, it will automatically compile your assets, including Tailwind CSS, without needing any complex build steps.
# Just run the server with --dev!
soli serve . --dev
Production Note
Live reload is disabled automatically when you build for release (`cargo build --release`). Your production app will be optimized for performance, not developer experience.