Closed josevalim closed 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.
I split it.