Hi Markus,
Checkout Application._rewriteResourceURL.
One of my apps looks something like this:
public String appName() {
return “MyApp";
}
public String appVersion() {
return "0.0.0.0";
}
public String _rewriteResourceURL(String url, WODeployedBundle bundle) {
url = url.replaceFirst("/WebObjects/", "/apps/");
url = url.replaceFirst(appName() + "-" + appVersion() + ".woa",
appName() + "/" + appVersion());
return url;
}
this works in in conjunction with mod rewrite to put resources at
domain/apps/appName/appVersion/resource.
Steve
> On Apr 22, 2019, at 5:25 AM, Markus Ruggiero <[email protected]>
> wrote:
>
> Following problem:
>
> Assume application is named abc.woa. I that case split install creates
> WebServerResources like "../htdocs/WebObjects/abc.woa...."
>
> I can easily deploy in Monitor that abc.woa under different names and thus
> get different URLs, but all the deployed instances share the same
> htdocs/WebObjects/abc.woa resources.
> Is there a way to rename the web server resources so that the different
> instances in Monitor can have their individual respective WebServerResources?
> How is the path to WebServerResources built inside a Wonder app? Does the
> running app look at the physical filename of the executable and determine the
> name from there?
>
> Or is there something in Wonder (there always seems to be) that supports this
> requirement out of the (wonder) box?
>
> Thanks a lot
> ---markus---
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/speery%40me.com
>
> This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]