An open API service indexing awesome lists of open source software.

https://github.com/mracos/mix_server

A simple mix task to start a (simple) http server on the current dir
https://github.com/mracos/mix_server

elixir elixir-lang http http-server mix mix-tasks

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

          

mix_server


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

![Travis (.org)](https://img.shields.io/travis/mracos/mix_server.svg?style=flat-square)

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.

:duck: