Closed glyh closed 1 year ago
ive never used escript before. Are there requirements on how apps should be started under escript?
I'm new to Elixir so sorry I don't know about that...
later i will run it with escript to see what is happening
BYW, it is not recommended to use escript for CLI in most of cases
For running live systems, consider using mix run or building releases. See the Application module for more information on systems life-cycles.
resolved by running with an system env, ERL_LIBS=_build/dev/lib [your Escript executable]
Check out the "The ability to use external modules" section of this blog http://davekuhlman.org/elixir-escript-mix.html#toc-entry-4
Again it is not recommended to use escript because it is not a "real" executable like what C++/Rust produced.
Thank you.
Here's the mix.exs:
And here is the main module I added:
The program will succeed in creation if I run
mixescript.build
, but when I run the app I get a bunch of errors: