mix ex_tauri.dev (ex_tauri v0.2.0)

View Source

Runs 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 are phx_server (default, the dev server — configurable via config :ex_tauri, :dev_command so you can run mix francis.server or any other command) and release (a compiled Elixir release). Custom shims registered under config :ex_tauri, :sidecars are also accepted. See ExTauri.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.json

Environment Setup

Make sure you have:

  1. Installed Tauri via mix ex_tauri.install
  2. Configured your Phoenix server to run on the correct host and port
  3. Added ExTauri.ShutdownManager to your application supervision tree

For more information, see: https://github.com/filipecabaco/ex_tauri