Added run script
This commit is contained in:
parent
cc36d46002
commit
ba3d3ced6d
9 changed files with 2 additions and 5 deletions
1
build
1
build
|
@ -1,3 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
erlc *.erl -o ebin
|
||||
erlc src/*.erl -o ebin
|
||||
|
|
BIN
js_runner.beam
BIN
js_runner.beam
Binary file not shown.
BIN
js_test.beam
BIN
js_test.beam
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
src/ggs_app.beam
BIN
src/ggs_app.beam
Binary file not shown.
Binary file not shown.
|
@ -91,11 +91,7 @@ code_change(_OldVsn, State, _Extra) ->
|
|||
%%-----------------------------------------------------
|
||||
|
||||
do_JSCall(Socket, Data) ->
|
||||
io:format("Data: ~p", [Data]),
|
||||
Port = js_runner:boot(),
|
||||
Ret = js_runner:executeJS(Port, Data),
|
||||
gen_tcp:send(Socket, io_lib:fwrite("~p~n", [Ret])).
|
||||
|
||||
args_to_terms(RawArgs) ->
|
||||
{ok, Toks, _Line} = erl_scan:string("[" ++ RawArgs ++ "]. ", 1),
|
||||
{ok, Args} = erl_parse:parse_term(Toks),
|
||||
Args.
|
||||
|
|
BIN
src/ggs_sup.beam
BIN
src/ggs_sup.beam
Binary file not shown.
Reference in a new issue