[erlang-questions] cowboy / start_http ... multiple ports?
t x
txrev319@REDACTED
Sun Mar 9 08:46:33 CET 2014
Fixed.
cowboy:start_http(http, ...)
cowboy:start_http(http, ...)
is the problem
the "http" is actually an atom for the name of some regsitered server,
so one needs to do:
cowboy:start_http(foo, ...)
cowboy:start_http(bar, ...)
:-)
On Sat, Mar 8, 2014 at 11:11 PM, t x <txrev319@REDACTED> wrote:
> Hi,
>
> Is there a way to run cowboy / start_http on multiple ports?
>
>
> I want port 8080 and port 7070 to serve different files (release vs
> dev js files from clojurescript).
>
> I have tried the following, but get an error:
> https://gist.github.com/txrev319/9443959
>
> Can someone let me know what I'm doing wrong?
>
> Thanks!
More information about the erlang-questions
mailing list