5HT / fs

📁 FS: Windows, Linux, Mac Driver
https://fs.n2o.dev
Other
235 stars 69 forks source link

Improve error reporting and use priv_dir on Mac #5

Closed josevalim closed 9 years ago

5HT commented 9 years ago

I split it.

5HT commented 9 years ago

We are not trying to break the OTP. We move forward. MAD is able to run zipped application inside escript. It means all app, theirs deps and all priv dirs are inside escriptized bundle. During startup we unzip it to ETS filesystem. We replace static handler for cowboy that is able to find files inside ETS.

UNFORTUNATELY we can't substitute or parametrise code:priv_dir. OTP can't pick up a static file from a bundle. MAD can. That is the trick how.