[erlang-questions] Web toolkit, N2O guide

Roger Lipscombe roger@REDACTED
Wed Apr 3 13:37:26 CEST 2019


> Open the src/hello_erlang_app.erl file and add the necessary code to the start/2 function

start/2 goes in hello_erlang_app.erl, not hello_erlang_handler.erl.

On Wed, 3 Apr 2019 at 11:21, Eckard Brauer <eckard.brauer@REDACTED> wrote:
>
> Hello,
>
> OK, tried the "Getting started" at
> (https://ninenines.eu/docs/en/cowboy/2.6/guide/getting_started/).
>
> When following that page, I don't get a 500 response as promised, but a
>
> compile: warnings being treated as errors
> src/hello_erlang_handler.erl:9: function start/2 is unused
>
> when building. So defining routes in paragraph "Listening for
> connections" should probably be corrected - what's the correct way /
> where is the correct position to define routes?
>
> Thanks in advance!
> Eckard
>
> Am Tue, 2 Apr 2019 09:57:36 +0300
> schrieb Dmitry Klionsky <dm.klionsky@REDACTED>:
>
> > +1 for cowboy.
> >
> > You serve static files using
> > https://ninenines.eu/docs/en/cowboy/2.6/guide/static_files/
> > For templating you can use https://github.com/erlydtl/erlydtl
> >
> >
> > On 4/1/19 10:59 PM, Wes James wrote:
> > > How about cowboy:
> > >
> > > https://github.com/ninenines/cowboy
> > >
> > > <snip>
> > >
> > >
> > > -wes
> > >
> > > _______________________________________________
> > > erlang-questions mailing list
> > > erlang-questions@REDACTED
> > > http://erlang.org/mailman/listinfo/erlang-questions
>
>
>
> --
> :)
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list