Jump to content

ServerModule paths, dependencies


andersa@ellenshoej.dk
 Share

Recommended Posts

Hi Farshad

 

Can you give an overview on the different paths in servermodule and how they depend on each other?

 

Can I change paths in the OnCreate event? How do I do this correctly`?

 

Specifically these properties

 

ServerRoot

CacheFolder

FilesFolder

TempFolder

Logger.RootPath (Is this the correct property to change the log folder position?)

 

When setting cache folder I seem to have experienced that the system wants to put the cache in a subfolder of the given folder.

 

Example: I set CacehFolder to C:\Inetpub\myapp\cache

I believe I have seen the application try to use C:\Inetpub\myapp\cache\cache in this case.

 

Something odd is going on. :-/

Link to comment
Share on other sites

Further observations:

 

You can set cache folder to an empty path at design time. It seems to then default to use the serverroot + '\cache\'.

You can not set files and temp to an empty path. They reset themselves back to 'files\' and 'temp\'.

 

Also, will unigui try to create these paths if they don't exist? In what cases?

Link to comment
Share on other sites

  • Administrators

Hi Farshad

 

Can you give an overview on the different paths in servermodule and how they depend on each other?

 

Can I change paths in the OnCreate event? How do I do this correctly`?

 

Specifically these properties

 

ServerRoot

CacheFolder

FilesFolder

TempFolder

Logger.RootPath (Is this the correct property to change the log folder position?)

 

When setting cache folder I seem to have experienced that the system wants to put the cache in a subfolder of the given folder.

 

Example: I set CacehFolder to C:\Inetpub\myapp\cache

I believe I have seen the application try to use C:\Inetpub\myapp\cache\cache in this case.

 

Something odd is going on. :-/

 

ServerRoot is the master root which will be used to calculate actual path of all partial roots.

 

Consider ServerRoot is 'C:\MYAPP\'

 

All partial paths are calculated respect to 'C:\MYAPP\'

 

If CacheFolder is 'myfiles\'

 

Full Cache path = 'C:\MYAPP\' + 'myfiles\' +'cache\'

 

'cache\' is automatically appended to user provided path: 'C:\MYAPP\myfiles\cache\'

 

If you provide a fully qualified path for CacheFolder then ServerRoot is ignored. 'cache\' is still appended.

 

uniGUI allows you to use complex path notations for ServerRoot such as '.\MyRoot' ,'..\MyRoot' or even '..\..\..\MyRoot'

 

All are translated to a proper physical path name.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...