Question
· 20 hr ago

Recommended way to compile CSP files on server

We have created a CSP application in the path /csp/ourapp. Due to some session handling issues, we created a new web application /csp/ourapp/hl7mapping that points to the sane namespace, and we now access the CSP pages using this new URL. This works fine in the local system.

After deploying the app to server, we are facing issues around compiling CSP pages.

 

We noticed that following compilation command works for CSP files located under the physical path /csp/ourapp, but it does not compile the CSP files placed under /CSP/ourapp/hl7mapping.

do $SYSTEM.CSP.LoadPageDir("/CSP/ourapp/","ck")

Because of this we compiled the CSP files manually using Ensemble studio connected to server.

Is there a recommended way to compile CSP files when using a custom web application path?

 

Thanks in advance,

Product version: Ensemble 2018.1
Discussion (1)2
Log in or sign up to continue

LoadPageDir() compiles the subdirectories as well if/when in the Web Application definition the setting "Web Settings: Recurse" is flagged (enabled). (It's flagged/enabled by default when creating a Web App)

How is Recurse setting set in your "/CSP/ourapp/" Web Application definition/configuration?

Note that the directory you pass to LoadPageDir is in fact the path of a Web Application, not the physical path on disk.