Adds the configured StarView development host to /etc/hosts and trusts the
generated Phoenix development certificate.
The task infers the host from:
config :my_app, star_view: [dev_url: "https://my-app.test:4001"]If no :dev_url is configured, it falls back to the current Mix application
name with underscores converted to hyphens.
This task asks before running privileged OS commands. If accepted, it may
prompt for your password through sudo.
Automatic certificate trust is currently implemented for macOS.
Examples
mix star_view.trust
mix star_view.trust --host my-app.test
mix star_view.trust --cert priv/cert/selfsigned.pem
mix star_view.trust --yesOptions
--host- hostname to add and trust. Defaults to the configured StarView dev URL host.--cert- certificate path. Defaults topriv/cert/selfsigned.pem.--ip- IP address for the hosts entry. Defaults to127.0.0.1.--dry-run- print the commands without running them.--yes- skip the confirmation prompt.