On Jan 26, 2005, at 3:46 AM, Pierre-Yves Delens wrote:
Bonjour,
I need to create an app based on a folder living outside of webware\WebKit;
my 1st (failed) test of MakeAppWorkDir was confusing :
I'm running fine a couple of contexts under (Windows)
c:\ServApps\Webware081\WebKit.
I guess that these should keep alive and OK if I create another app via
MakeAppWorkDir.
MakeAppWorkDir ?Question : Shall there be any interference with the run of
You probably want to have one running app dir for the stuff you are writing. While you are writing files in that folders, the admin and documentation contexts stay running. If you later want to deactivate them, you can comment out the lines in the Application.config file.
- But MakeAppWorkDir is creating a new (concurrent ?) webkit.cgi file.
- The doc is saying to copy this cgi in the cgi-bin folder.
Which is not existing in my config
(standalone appserver, NOT Apache in this case).
- I read into the standard (already existing) webkit.cgi file, where the
doc says to alter the AppWorkDir parameter. But this was not said in the
MakeAppWorkDir doc.
- >> Question : Shall there be 2 webkit.cgi files coexisting ?
- >> Question : Shall there be 2 AppServer.bat files coexisting ?
( AppServer.bat http)
Each time you run MakeAppWorkDir, it will generate a new .cgi adapter-, or mod_kit file. But you only need one. If you are running with CGI, then you can just configure Apache to find your cgi-adapter, and the rest should work.
is the syntax for an absolute path ?Question : About the path to the new app folder (outside of WW4PY), what
(I had a couple of tests, with no success. But the error was perhaps not
in the path : see above)
- >>> Q : are there restrictions in the naming of contexts and folders
(name length ?)
I don't know of a specific limit. If you are using reasonable names, it shouldn't be a problem. I don't use windows so I don't know if there will be an issue with back slashes (\). Maybe you need to double them. (\\)
- >>> Q : is a CMD line like this OK :
MakeAppWorkDir.py -l -c RestCollections
'C:\PythonZone\LTF\DocutilsTools\RestCollections'
do as to complete the config of both my new app and my already existingQuestion : More generally, after runningMakeAppWorkDir.py , what should I
contexts ?
Are you trying to use a CGI adapter? If so, the biggest issue is to see that Apache can run your cgi. Try writing another simple cgi and see if apache will run it. When that's working, go to your Webware cgi adapter and see if it works too. That way you isolate getting apache configured with getting Webware configured.
-winston
_________________________________________
winston wolff - (646) 827-2242 - http://www.stratolab.com - learning by creating