[99s-extend] cowboy websocket example runtime error
Samir Sow
samset at wanadoo.fr
Thu Mar 19 19:32:11 CET 2015
OK. The error is cleared.
Now i get a 404 on the client when trying to connect.
Thank you.
Samir
> On 19 mars 2015, at 19:03, Loïc Hoguin <essen at ninenines.eu> wrote:
>
> No. ERL_LIBS=_rel/hello_world_example/lib
>
> Or, ERL_LIBS=..:deps if you want the non-release version. Beware of what's in .. though (should be fine if you are in the examples folder).
>
> On 03/19/2015 07:01 PM, Samir Sow wrote:
>> You mean where src, priv, ebin, deps … are, right ?
>>
>> Samir
>>
>>> On 19 mars 2015, at 18:56, Loïc Hoguin <essen at ninenines.eu> wrote:
>>>
>>> ERL_LIBS should point to the lib directory (where the application directories are), not to the root directory of the release.
>>>
>>> On 03/19/2015 06:46 PM, Samir Sow wrote:
>>>> I’ve exported ERL_LIBS=<root_dir> before erl execution. but got same error ...
>>>>
>>>>
>>>>> On 19 mars 2015, at 18:40, Loïc Hoguin <essen at ninenines.eu> wrote:
>>>>>
>>>>> If you don't use the release start script it can still work but you must define ERL_LIBS to let Erlang know where applications are located (-pa **ebin only says where *beams* are located).
>>>>>
>>>>> Maybe more things.
>>>>>
>>>>> On 03/19/2015 06:31 PM, Samir Sow wrote:
>>>>>> Manually from the application root dir.
>>>>>> with exec erl <paths>
>>>>>> Then starting all required applications
>>>>>>
>>>>>> Not very clever i admit but could not print debug info with _rel/bin/websocket
>>>>>>
>>>>>> Samir
>>>>>>
>>>>>>
>>>>>>> On 19 mars 2015, at 18:10, Loïc Hoguin <essen at ninenines.eu> wrote:
>>>>>>>
>>>>>>> How do you run it?
>>>>>>>
>>>>>>> On 03/19/2015 06:08 PM, Samir Sow wrote:
>>>>>>>> Hi there,
>>>>>>>>
>>>>>>>> I would appreciate your help to understand the following error when running the websocket example.
>>>>>>>>
>>>>>>>> Context is :
>>>>>>>>
>>>>>>>> ERL 17
>>>>>>>> Cowboy 2.0.0-pre (master)
>>>>>>>> no source modification
>>>>>>>>
>>>>>>>>
>>>>>>>> =ERROR REPORT==== 19-Mar-2015::18:04:36 ===
>>>>>>>> Error in process <0.160.0> with exit value: {[{reason,{badarg,"Can't resolve the priv_dir of application websocket"}},{mfa,{cowboy_static,init,2}},{stacktrace,[{cowboy_static,priv_path,2,[{file,"src/cowboy_static.erl"},{line,66}]},{cowboy_static,init_opts,2,[{file…
>>>>>>>>
>>>>>>>> Thank you.
>>>>>>>>
>>>>>>>> Samir
>>>>>>>> _______________________________________________
>>>>>>>> Extend mailing list
>>>>>>>> Extend at lists.ninenines.eu
>>>>>>>> https://lists.ninenines.eu/listinfo/extend
>>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Loïc Hoguin
>>>>>>> http://ninenines.eu
>>>>>>
>>>>>
>>>>> --
>>>>> Loïc Hoguin
>>>>> http://ninenines.eu
>>>>
>>>
>>> --
>>> Loïc Hoguin
>>> http://ninenines.eu
>>
>
> --
> Loïc Hoguin
> http://ninenines.eu
More information about the Extend
mailing list