Don't put a directory with an unrelated git repo into your d2w app's resources
Don't put a directory with an unrelated git repo into your d2w app's resources
- Subject: Don't put a directory with an unrelated git repo into your d2w app's resources
- From: Fabian Peters <email@hidden>
- Date: Fri, 31 Jan 2014 13:21:49 +0100
Hi all,
Just to spare anybody else a long debugging session: The above is a bad idea. I put two javascript git projects in my webserver-resources. Among them, they account for a good 900 files. Since my app had "WOMissingResourceSearchEnabled" set to true, and did not have a "d2wclientConfiguration.plist" nor a "d2wclient.d2wmodel", _NSProjectBundleIDEProject.extractFilesIntoWOProject() was called on each request. Which causes the list of available resources to get rebuilt from scratch…
Having WOMissingResourceSearchEnabled set to true seems like a sensible default choice in development. But maybe we could handle d2wclientConfiguration.plist and d2wclient.d2wmodel in a more intelligent way? Like: If it's not there the first time round, stop looking?
Fabian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden