Advanced deployment notes for others to learn from since I had some problems with it
A warning for people who do the advanced deploying:
If you do an advanced deploy then the default paths are as follows (those entries are empty then!):
Common Libraries Folder:
web_application_path/_lib/prod
Images Folder:
web_application_path/_lib/file/img
Temp Folder:
web_application_path/_lib/tmp
Documents Folder:
web_application_path/_lib/file/doc
This is badly documented so be aware. Below a piece of the code that arranges the paths for my grid_filestorage application
if(empty($_SESSION['scriptcase']['grid_filestorage']['glo_nm_path_prod']))
{
/*check prod*/$_SESSION['scriptcase']['grid_filestorage']['glo_nm_path_prod'] = $str_path_apl_url . "_lib/prod";
}
//check img
if(empty($_SESSION['scriptcase']['grid_filestorage']['glo_nm_path_imagens']))
{
/*check img*/$_SESSION['scriptcase']['grid_filestorage']['glo_nm_path_imagens'] = $str_path_apl_url . "_lib/file/img";
}
//check tmp
if(empty($_SESSION['scriptcase']['grid_filestorage']['glo_nm_path_imag_temp']))
{
/*check tmp*/$_SESSION['scriptcase']['grid_filestorage']['glo_nm_path_imag_temp'] = $str_path_apl_url . "_lib/tmp";
}
//check doc
if(empty($_SESSION['scriptcase']['grid_filestorage']['glo_nm_path_doc']))
{
/*check doc*/$_SESSION['scriptcase']['grid_filestorage']['glo_nm_path_doc'] = $str_path_apl_dir . "_lib/file/doc";
}
So suppose I have a project with many applications called ‘myprj’ which I place in …\www so that I get …\www\myprj
Then you either do not set the paths on advanced deployment in which case they default to (by the code in my grid_filestorage.php file, in the first couple of lines) and later on (see above)
Common Libraries Folder:
/myprj/grid_filestorage/_lib/prod
Images Folder:
/myprj/grid_filestorage/_lib/file/img
Temp Folder:
/myprj/grid_filestorage/_lib/tmp
Documents Folder:
/myprj/grid_filestorage/_lib/file/doc
If you want it different then you need to set the paths by hand… In which case you may opt a more global lib if you have more projects running for example:
Common Libraries Folder:
/_lib/prod
Images Folder:
/_lib/file/img
Temp Folder:
/_lib/tmp
Documents Folder:
/_lib/file/doc
This is not properly documented so be aware for mistakes.