Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 828 Bytes

README.md

File metadata and controls

30 lines (18 loc) · 828 Bytes

mix_server

A simple mix task to start a (simple) http server on the current dir

Travis (.org)

The simplicity of python -m http.server with the power of Elixir/Erlang.

Install

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

Usage

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.

🦆