This commit adds an option to override `http://localhost:8000` in
`mix send_event`. This is useful when running the server in another port
or with remote servers such as staging.
@ -9,6 +9,7 @@ defmodule Mix.Tasks.SendPageview do
useMix.Task
requireLogger
@default_host"http://localhost:8000"
@default_ip_address"127.0.0.1"
@default_user_agent"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36 OPR/71.0.3770.284"
@default_domain"dummy.site"
@ -19,7 +20,8 @@ defmodule Mix.Tasks.SendPageview do
user_agent::string,
domain::string,
page::string,
referrer::string
referrer::string,
host::string
]
defrun(opts)do
@ -41,8 +43,9 @@ defmodule Mix.Tasks.SendPageview do