elixir-maru / maru

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

Followed the guide but server curl test does not work #120

Closed andrewvmail closed 5 years ago

andrewvmail commented 5 years ago

Just starting out with elixir and maru but cant get cowboy up for some reason. I carefully followed the guide in the readme. The example repo with the old deps works though ... any ideas?

Cheers

git clone https://github.com/andrewvmail/my_app
cd my_app
mix deps.get
iex -S mix   
falood commented 5 years ago

I'm sorry @andrewvmail , I have too many email in my inbox and I missed the previous message.

andrewvmail commented 5 years ago

No worries, but yeah for some reason i couldn't get it to work. Take your time I'm just playing around with vanilla Elixir at the moment.

falood commented 5 years ago

this patch will fix the issue 🙂

diff --git a/mix.exs b/mix.exs
index 7676702..597a38b 100644
--- a/mix.exs
+++ b/mix.exs
@@ -14,6 +14,7 @@ defmodule MyApp.MixProject do
   # Run "mix help compile.app" to learn about applications.
   def application do
     [
+      mod: {MyApp.Application, []},
       extra_applications: [:logger]
     ]
   end
andrewvmail commented 5 years ago

Thanks!