[英]Can I run an escript app from rebar3?
After creating an escript app: 创建escript应用程序后:
$ rebar3 new escript hello
Can I run with with rebar3, instead of calling escriptize
first? 我可以使用rebar3运行,而不是先调用
escriptize
吗?
Ie something like this? 就是这样的?
$ rebar3 run
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. 一种解决方案可能是在您的makefile中添加“run”指令 - 这样您就可以调用
make run
来执行escriptize
步骤并运行结果。
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. 根据你真正想要实现的目标运行
./rebar3 shell
可能对你有所帮助 - 我有时这样做,所以我只需要运行所需的函数就可以调试部分代码。
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... 最后你总是可以编写一个扩展escriptize步骤的钢筋插件;) - 从来没有为rebar3自己完成它,但必须比旧钢筋更容易...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.