Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I run an escript app from rebar3?

Tags:

erlang

rebar3

After creating an escript app:

$ rebar3 new escript hello

Can I run with with rebar3, instead of calling escriptize first?

I.e. something like this?

$ rebar3 run
like image 228
Andriy Drozdyuk Avatar asked Oct 18 '22 06:10

Andriy Drozdyuk


1 Answers

One solution might be to add a "run" directive to your makefile instead - this way you can call make run which does the escriptize step and runs the result.

Depending on what you really want to achieve running ./rebar3 shell might help you - I do this sometimes so I can debug portions of code just by running the required functions.

Finally you could always write a rebar plugin that extends the escriptize step ;) - never done it myself for rebar3 but has to be easier than the old rebar...

like image 109
Howard Beard-Marlowe Avatar answered Oct 21 '22 03:10

Howard Beard-Marlowe