mix ex_tauri.dev (ex_tauri v0.2.0)
View SourceRuns the Tauri application in development mode with hot-reload.
This task builds your Elixir release and starts the Tauri development server, which will open your application in a native window with hot-reload capabilities.
The Phoenix dev server runs as a sidecar process managed by Tauri, so this command automatically skips waiting for the dev server (passes --no-dev-server-wait).
Usage
$ mix ex_tauri.dev [OPTIONS]
Options
--release/-r- Run in release mode instead of debug mode--sidecar <NAME>- Which sidecar "shim" Tauri should launch. Built-in names arephx_server(default, the dev server — configurable viaconfig :ex_tauri, :dev_commandso you can runmix francis.serveror any other command) andrelease(a compiled Elixir release). Custom shims registered underconfig :ex_tauri, :sidecarsare also accepted. SeeExTauri.Sidecar.--prod-sidecar- Deprecated alias for--sidecar release. Slower than the dev server, but exercises release boot, runtime config, and migrations.--target <TARGET>- Build for the specified target triple--runner <RUNNER>- Use the specified runner for the binary--config <CONFIG>- Use a custom tauri.conf.json file--port <PORT>- Specify a custom port for the dev server--no-watch- Disable file watching for hot-reload--features <FEATURES>- Space or comma-separated list of features to activate--exit-on-panic- Exit on panic
Examples
# Run in development mode (default)
$ mix ex_tauri.dev
# Run in release mode for better performance
$ mix ex_tauri.dev --release
# Run with specific Rust features
$ mix ex_tauri.dev --features custom-protocol
# Run with a custom config file
$ mix ex_tauri.dev --config src-tauri/tauri.staging.conf.jsonEnvironment Setup
Make sure you have:
- Installed Tauri via
mix ex_tauri.install - Configured your Phoenix server to run on the correct host and port
- Added ExTauri.ShutdownManager to your application supervision tree
For more information, see: https://github.com/filipecabaco/ex_tauri