klacke/yaws — Issue #81: yaws.app.src not suitable for embedded mode as rebar dep
Author: efine
Created: 2012-01-09 19:03:26+00:00
State: open

yaws.app.src contains a {mod, _} tuple. This causes the rel script to try to start yaws_app when the parent app starts. This is all well and good when yaws has a config file, but causes everything to crash when being used in embedded mode where there is no config file, because yaws_app is started before any possibility of embedded mode being detected and dies on not finding a config file. I don't want to have to provide a fake config file just to solve this.

My workaround was to fork Yaws and remove the {mod,_} tuple from yaws.app.src, but that's not a good way to do it. It would be great if this could be configured simply in the top-level rebar config, but I can't think of how without template processing or sed hacking.
The same goes for being able to disable PAM. Having to run configure when you actually just want to use rebar is kinda klunky. Again, it would be so helpful if there were some way to do this preconfiguration in the top-level rebar.config. Maybe there is, but again I could not think of something elegant.