[erlang-questions] create release add libraries
Loïc Hoguin
essen@REDACTED
Sat Nov 16 21:53:30 CET 2013
On 11/16/2013 09:47 PM, Wes James wrote:
>
>
>
> On Sat, Nov 16, 2013 at 12:58 PM, Loïc Hoguin <essen@REDACTED
> <mailto:essen@REDACTED>> wrote:
>
> On 11/16/2013 08:17 PM, Wes James wrote:
>
> I am moving an app to use relx to create it in to a release. I
> have the
> erlang app mostly working except for secure websockets is not
> working
> right so I'm trying to add wx and debugger libs (are those the right
> ones) so I can run:
>
> make
> ./_rel/bin/app console
>
> then in the erlang console do:
>
> im().
> ii(websocket_handler).
> iaa([init]).
>
> but this doesn't work since wx and debugger libs are not in _rel/lib
>
> Where do I add these to the release compilation?
>
>
> In relx.config:
>
> {release, {your_release_name, "1"}, [your_app_name, debugger,
> observer]}.
>
>
> Thanks. It's getting further now.
>
> I have this for my relx.config:
>
> {release, {my_app, "1"}, [stu, debugger, observer, wx]}.
> {extended_start_script, true}.
> {vm_args, "./vm.args"}.
>
> I had to put in vm_args since I need -smp for wx to run.
>
> when I do:
>
> im().
>
> that is fine, but when I do:
>
> ii(websocket_handler).
>
> I get this error:
>
> =ERROR REPORT==== 16-Nov-2013::13:28:14 ===
> Error in process <0.824.0> on node 'my_app@REDACTED
> <mailto:my_app@REDACTED>' with exit value:
> {undef,[{sys_pre_expand,module,[[{attribute,1,file,{"src/websocket_handler.erl",1}},{attribute,1,module,websocket_handler},{attribute,2,export,[{init,3},{handle,2},{terminate,3}]},{attribute,7,export,[{websocket_init,3},...
>
>
> ** exception exit: {{{badmatch,{undef,[{sys_pre_expand,module,
>
> and long bit of output which shows all the lines of
> websocket_handler.erl....
>
> What does this mean?
Seems the ii/1 function requires the compiler application to work, so
you should add it too.
--
Loïc Hoguin
Erlang Cowboy
Nine Nines
http://ninenines.eu
More information about the erlang-questions
mailing list