How to log the relative file location to its project root?
"my-project" is the root directory of the Phoenix Framework project.
Inside users/me/apps/my-project/my-file.txt, if I do :
IO.puts __ENV__.file
The console outputs the absolute path: users/me/apps/my-project/my-file.txt.
How to output the relative path, e.g. my-project/my-file.txt ?