Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fixes in the starting of dependencies and loading of index.html from priv_dir #6

Open
wants to merge 6 commits into
from

Conversation

Projects
None yet
1 participant

nisbus commented Dec 30, 2012

The commit's are a bit of a mess (a rebase gone haywire) but I think the changes are good.

I was testing this for my own site (not running there yet) and I found that when reltool included crypto, ezwebframe would crash since it would already have been started.

Also I created my own application using ezwebframe as a dependency and put all my html/css/js into the priv_dir. Calling for index.html didn't work that way but it works with these changes.

nisbus added some commits Dec 30, 2012

Fixed the loading of index.html if it's located in the priv_dir
of the application.
Also removed the recevie after infinity in the start functions so the shell is now
operational when starting the app.
Changed the ok = application:start(app) to ignore errors if the appli…
…cation was already started.

Fixed the loading of index.html if it's located in the priv_dir
of the application.
Also removed the recevie after infinity in the start functions so the shell is now
operational when starting the app.

nisbus commented Dec 31, 2012

This is my home.erl dispatch method:

dispatch('/') ->
Dir = code:priv_dir(eznisbus),
Dir++"index.html";
dispatch(F) ->
Dir = code:priv_dir(eznisbus),
Dir++ F.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment