Your other option is to
cd /Library/Webserver/Documents
mdkir WebObjects
cd WebObjects
ln –s <path to App.woa/Contents/Frameworks> Frameworks
And maybe the same for the App if you have app level resources. Any security issues are yours to keep! :-)
Or run the app in development mode.
But, really, you want to do a split install.
Chuck
On 2015-04-08, 10:36 AM, "Calven Eggert" wrote:
I was hoping that I didn’t have to manually move the css on the server but instead reference the css that is in the embedded framework.
On Apr 8, 2015, at 12:04 PM, Chuck Hill < email@hidden> wrote:
See the explanation from Markus below, specifically, "In deployment mode however the resources will be referenced statically direclty
by the web server, not through your application. Therefore the resources need to be put where your Apache can find them. This is called split install. When you build your application (ant build with build.xml) you get two .tar.gz files. One is the application
and one contains the static web server resources. Unpack those into your docroot folder.”
Chuck
On 2015-04-08, 8:32 AM, "Calven Eggert" wrote:
I see what the problem is but am no sure what to do to fix it.
When I run the app on the server the html is looking for the css file in the /Library/Webserver/Documents folder:
<link rel="stylesheet" type="text/css" href="">
It can’t find it there because I have included all my frameworks in the app’s .woa here:
App.woa/Contents/Frameworks/COREWonderFW.framework/WebServerResources/CORECalendar.css
Is there a way to change that link so that it finds the .css? (That <link> seems to be generated. It’s not in my code)
Calven
On Apr 8, 2015, at 3:48 AM, Markus Ruggiero < email@hidden> wrote:
On 07.04.2015, at 22:13, Calven Eggert < email@hidden> wrote:
Hi All,
I’m using AjaxDatePicker and it works great on my machine, however, when installed on server the app doesn’t display the date.
The link when working locally is:
AOD.loadCSS('/cgi-bin/WebObjects/CancerStaging.woa/_wr_/wodata=/Users/coredev/Projects/COREWonderFW/Resources/CORECalendar.css')
When on the server:
AOD.loadCSS('/WebObjects/Frameworks/COREWonderFW.framework/Resources/CORECalendar.css')
I am overriding the css and framework so that all my apps can use the same css:
AuditAjaxDate: AjaxDatePicker {
...
calendarCSS = "CORECalendar.css";
calendarCSSFramework = "COREWonderFW";
}
Have I entered the values correctly (relative paths), or is there something else I’ve missed?
Calven
Calven,
this is "split install".
during development you can put your static webserver resources either in Resources or WebServerResources folder. The resource manager will locate them. The URL from the development clearly shows this (access through your application). In deployment
mode however the resources will be referenced statically direclty by the web server, not through your application. Therefore the resources need to be put where your Apache can find them. This is called split install. When you build your application (ant build
with build.xml) you get two .tar.gz files. One is the application and one contains the static web server resources. Unpack those into your docroot folder.
You can either embed all the frameworks into your application or then all the frameworks must be installed in either wo.system.frameworks or wo.local.frameworks (these are paths from your wolips.properties file). The ant build process will collect
and package all the static resources from your application and the frameworks.
Hope this helps
---markus---
Calven
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Help/Unsubscribe/Update your Subscription:
|