Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

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
base: master
Choose a base branch
from

Conversation

nisbus
Copy link

@nisbus 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 6 commits December 30, 2012 19:50
of the application.
Also removed the recevie after infinity in the start functions so the shell is now
operational when starting the app.
…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
Copy link
Author

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant