Something we tried (but weren't smart enough to pull off) was to extract the
individual port number from each developer's environment variables and then
plug it into AppServer.config.  I don't recall the exact problem, but it
seems like we couldn't put os.environ['WK_PORT'] into the configuration
dictionary and have it stick.  That way, our webkit start/stop script
wouldn't have to stream-edit the config file (which makes it show up in 'cvs
update' as modified.

If anybody can help me to plug in an environment variable into a config
value, I'd be grateful.

We also ended up writing a bit of a brute-force stop/start script because we
sometimes noted that the AppServer needed more than just a plain kill to the
lead process.

Cheers!
--
David Hancock | [EMAIL PROTECTED] | 410-266-4384


-----Original Message-----
From: Jason Hildebrand [mailto:jason@;peaceworks.ca] 
Sent: Wednesday, November 13, 2002 9:27 PM
To: Edmund Lian
Cc: webware-discuss
Subject: Re: [Webware-discuss] Setting up for multiple developers


On Wed, 2002-11-13 at 19:36, Edmund Lian wrote:
> 
> OK, this is what I thought... I see Stuart is asking about how to have
each
> user run their own AppServer. This is kind of related to my follow-up
> question: How do we configure Apache and the Webware config files to have
> multiple AppServer instances, each controlled by a different user?

Assuming you're using mod_webkit, you'll need to have a few of the
following stanzas (one for each user) in your Apache config, each using
a different port number:

<Location /john>
    WKServer localhost 8086
    SetHandler webkit-handler
</Location>

<Location /graham>
    WKServer localhost 8087
    SetHandler webkit-handler
</Location>

<Location /eric>
    WKServer localhost 8088
    SetHandler webkit-handler
</Location>

Then you'll just need to edit the port number in each user's
Configs/AppServer.config file:

            'Port':                 8086,

Then each user can start their own appserver, and can access their
personal copy of the application.  I.e. John goes to
http://localhost/john to get his copy of the site.

-- 
Jason D. Hildebrand
[EMAIL PROTECTED]



-------------------------------------------------------
This sf.net email is sponsored by: Are you worried about 
your web server security? Click here for a FREE Thawte 
Apache SSL Guide and answer your Apache SSL security 
needs: http://www.gothawte.com/rd523.html
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss


-------------------------------------------------------
This sf.net email is sponsored by: Are you worried about 
your web server security? Click here for a FREE Thawte 
Apache SSL Guide and answer your Apache SSL security 
needs: http://www.gothawte.com/rd523.html
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to