run command starts the Framefox development server with hot-reload capabilities and automatic browser opening.
Usage
Options
Port to run the server on. If the port is in use, the command will automatically try the next available port.
Short form of
--portDon’t open the browser automatically when the server starts
Examples
Start on Default Port
Start on Custom Port
Start Without Browser
Combine Options
Example Output
Port Already in Use
Features
Hot Reload
The development server automatically reloads when you modify files in thesrc directory:
Hot reload is configured with a 0.5-second delay to prevent excessive reloads during rapid file changes.
Automatic Port Detection
If the specified port is in use, the command automatically searches for the next available port (up to 10 attempts).Browser Auto-Open
By default, your default browser opens automatically 2 seconds after the server starts, giving it time to fully initialize.Development Mode Settings
When you run the development server, these environment variables are automatically set:FRAMEFOX_DEV_MODE=true- Enables development modeFRAMEFOX_CACHE_ENABLED=true- Enables caching for better performanceFRAMEFOX_MINIMAL_SCAN=true- Optimizes container scanning
Server Technology
The development server runs on Uvicorn, a lightning-fast ASGI server:- Hot reload support
- Async/await support
- WebSocket support
- HTTP/2 support
- Production-ready (when configured appropriately)
Stopping the Server
To stop the server, press:Accessing Your Application
Once the server is running, access your application at:- Local: http://localhost:8000
- Network: http://127.0.0.1:8000
8000 with your custom port if specified.
Performance Tips
Common Use Cases
Development with Database Changes
Team Development
For consistent ports across team members, add to your documentation:Remote Development
When developing on a remote server:Troubleshooting
Port Already in Use
If you see “Port already in use” errors repeatedly:Reload Not Working
Ensure your changes are in thesrc directory:
src won’t trigger reloads.
Browser Not Opening
If the browser doesn’t open automatically:- Check if the server started successfully
- Manually open http://localhost:8000
- Use
--no-browserif auto-open is problematic