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
- Host: GitHub
- URL: https://github.com/mracos/mix_server
- Owner: mracos
- License: mit
- Created: 2018-09-18T03:55:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-27T22:22:54.000Z (about 7 years ago)
- Last Synced: 2026-01-26T17:50:45.304Z (2 months ago)
- Topics: elixir, elixir-lang, http, http-server, mix, mix-tasks
- Language: Elixir
- Size: 6.84 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
mix_server
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.
## 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: