Escript - Specify output location

Hi,

I’m running an application with escript and it all works fine.

The output binary however is put straight in the root of the project and I would like to put it somewhere else. I tried to look at the erlang man page but did not see (or perhaps understand) any way to do it. Is there?

As far as I remember, mix escript.build will create the escript in the project root per default, though you should be able to use the :path option to change that behaviour:

https://hexdocs.pm/mix/Mix.Tasks.Escript.Build.html#module-configuration

2 Likes

There it was. Thank you.