Monday, July 18, 2011 3:52:20 AM
Hi,
OK, I think there may be a (relatively) simple way to set this up for 4D Remote
running on Windows 7/Vista.
As stated in the Active4D docs, the "Active4D" folder (with the configuration
files) can be located in the following location (and should be found
automatically by Active4D):
<Disk>:\ProgramData\4D\com.aparajita\
As "ProgramData" is a fixed directory on Windows 7/Vista (ie, it's supposed to
be there, and not tied to any specific user), it should be possible to store
both the "Web" and "Web_Static" folders in this directory as well, no?
In order for Active4D to find the "Web" folder, then, I assume we should set
the following option in the "Active4D.ini" file:
root = <boot volume>/ProgramData/4D/com.aparajita/Web
And, for 4D to find the "Web_Static" folder, we should make the following call
in code before launching the web server:
SET HTML ROOT ("C:\ProgramData\4D\com.aparajita\Web_Static")
I think that should do it, no? Then all someone needs to do is go into the
"C:\ProgramData\4D\com.aparajita" directory on the 4D Remote computer to find
all folders and files necessary for Active4D, all in one place.
And, as far as I know, the contents of this folder can be modified by the
application, so there shouldn't be any problem for my web page manager module
to update the pages in these directories from 4D directly.
Finally, as it's a "top level" directory (ie, not within any specific user's
folder), in theory this should be accessible to any user accessing the computer
without any specific privileges, no? That is, if one user sets it up, and
another user logs in, either of them should be able to see and modify these
directories, no?
Anybody see any problem with my logic? Know of any pitfalls? Or have a better
suggestion for managing these locations?
(Again, the goal is to try to make it as easy as possible for someone else
setting this up, but that will work correctly with Active4D and 4D web serving
on 4D Remote.)
Thanks again for any assistance or comments!
Michael Larue
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/