I tried adding reloading to a simple Bandit/Plug app:
Mix.install([
{:bandit, "~> 1.9"},
{:exsync, "~> 0.4.1"}
])
defmodule MyPlug do
import Plug.Conn
def init(options) do
options
end
def call(conn, _opts) do
conn
|> put_resp_content_type("text/plain")
|> send_resp(200, "Hello world - it's #{DateTime.utc_now()}")
end
end
Bandit.start_link(plug: MyPlug)
Process.sleep(:infinity)
Running it with elixir web.exs, I see ExSync starting, but nothing happens if I modify & save web.exs.
Not sure what is happening yet!
I tried adding reloading to a simple Bandit/Plug app:
Running it with
elixir web.exs, I seeExSyncstarting, but nothing happens if I modify & saveweb.exs.Not sure what is happening yet!