elixir-maru / maru

Elixir RESTful Framework
https://maru.readme.io
BSD 3-Clause "New" or "Revised" License
1.32k stars 84 forks source link

How to run a maru app without `iex`? #37

Closed aisrael closed 8 years ago

aisrael commented 8 years ago

All the documentation I've read goes iex -S mix.

If I just type mix it displays Running Elixir.MyAPP.API with Cowboy on http://127.0.0.1:8880 then promptly exits.

What if I'm eyeing to deploy this to production, do I really need to have an interactive app waiting for input?

Kabie commented 8 years ago

You can run it with mix run --no-halt. Or deploy it with distillery.

aisrael commented 8 years ago

Thanks. Is that something that should be in the docs, or is it something that should be common knowledge in #elixir?

Kabie commented 8 years ago

Just do mix help and mix help run, you will find the usage.