Re: Renaming WebServerResources folder
Re: Renaming WebServerResources folder
- Subject: Re: Renaming WebServerResources folder
- From: Steve Peery <email@hidden>
- Date: Mon, 22 Apr 2019 09:40:15 -0400
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@hidden>
> 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@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
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