nelsonic / practice

Practice makes ...
11 stars 4 forks source link

Elixir plug basic http server #13

Closed nelsonic closed 7 years ago

nelsonic commented 7 years ago

https://m.alphasights.com/simple-web-servers-with-plug-and-cowboy-34f7a174f252

nelsonic commented 7 years ago
==> plugger
Compiling 2 files (.ex)
Generated plugger app
** (Mix) The task "run — no-halt" could not be found
nelsonic commented 7 years ago

instead it should be:

mix run --no-halt

thanks to: https://hexdocs.pm/mix/Mix.Tasks.Run.html and https://stackoverflow.com/questions/30687781/how-to-run-elixir-application

nelsonic commented 7 years ago

Still getting error: image

=INFO REPORT==== 6-Sep-2017::11:17:47 ===
    application: logger
    exited: stopped
    type: temporary
** (Mix) Could not start application plugger: exited in: Plugger.start(:normal, [])
    ** (EXIT) an exception was raised:
        ** (UndefinedFunctionError) function Plugger.start/2 is undefined or private
            (plugger) Plugger.start(:normal, [])
            (kernel) application_master.erl:273: :application_master.start_it_old/4
nelsonic commented 7 years ago

Not going to waste more time on this woefully incomplete tutorial.