andersa@ellenshoej.dk Posted October 24, 2011 Posted October 24, 2011 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. :-/ Quote
andersa@ellenshoej.dk Posted October 24, 2011 Author Posted October 24, 2011 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? Quote
Administrators Farshad Mohajeri Posted October 24, 2011 Administrators Posted October 24, 2011 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. Quote
andersa@ellenshoej.dk Posted October 31, 2011 Author Posted October 31, 2011 Unigui seems to try to create the files, cache and temp folders at an early stage, so if you change the root folder in the UniGUIServerModuleCreate event, the creation of these folders has already been attempted. Is there a way around this? Quote
Administrators Farshad Mohajeri Posted November 3, 2011 Administrators Posted November 3, 2011 I added a new event to ServerModule named : OnBeforeInit Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.