I made an app using PackageCompiler.create_app
and it works really nice.
My app requires a database which is a file, and I would like to use the file in the same folder as the binary…
However when I run
~/bin/MyApp
The pwd()
becomes the path from which I called MyApp
. Is there a way for the app to know where the bin
folder is?