A simple mix task to start a (simple) http server on the current dir
The simplicity of python -m http.server
with the power of Elixir/Erlang.
You can install with
mix archive.install hex mix_server
Or if you want the latest master
mix archive.install github mracos/mix_server master
You can start the server on the current directory with:
mix server
By default, it starts a server on localhost
at the 4000
port
With the document_root
being the current dir ($PWD
)
You can also pass the optinoal parameters of host
and port
mix server --port 1234 --host 0.0.0.0
That's it, really, nothing more.
🦆