1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Question Propath?

Discussion in 'WebSpeed' started by catch.saravana, Sep 19, 2017.

  1. We have a webspeed application which is using CGI wrapper. I am finding a way to enable debugging capability in a common environment. Let's say we have 25 developers, all 25 developers will login with the same unix id (common broker & propath) but will have different login profile. Is there a way where I can add that individual's home directory based on the login profile at the start of the propath?

    I can't add this to the user_login.w as it will be lost when redirected to next page. I can't add this to the place which holds the session details because doing so will not let me debug any of the .w files. Do we have any other option?

    I wanted to explore this option before enabling 4GL Trace. Please advise. Thanks!
     
  2.  
  3. Cecil

    Cecil 17+ years progress programming and still learning.

    I guess the problem is when the session ends that the ProPath is reverted back to it's Original propath.

    The possible alternative solution is (and this does suck) in that each developer uses their own testing WebSpeed broker/agents with the ProPath set into the configuration (not coded).

    http://developmentServer/Wsbroker=WSDevelop01
    http://developmentServer/Wsbroker=WSDevelop02
    ...
    http://developmentServer/Wsbroker=WSDevelop25

    There are alternative to represent this URL even using custom ScriptAlisas in Apache.

    We had a similar problem with AppServers. Each Developer got their own AppServer Broker/Agents.
     
  4. Sorry for the late reply. This is how we have in our dev environment but we are not comfortable doing the same with test and preprod servers.
     
  5. Coop

    Coop New Member

    We use "sandboxes". Each developer has their own sandbox directory so we don't interfere with each other or the production environment while working on code in our sandboxes. We have a "developer's" page where we can set (and remove) a "sandbox" cookie with our sandbox directory path as the value. We edited src/web/objects/web-util.p to look for this cookie and add the developer's sandbox path to the beginning of the propath and remove it when the web hit is complete. It has worked very well for many years. We also recently started using a new separate broker with a different propath just for developers using a separate .inet file that points to that new broker. We left the sandboxes in place so we don't interfere with each other in this new development broker environment and for production testing. We also added extensive logging to web-utils.p which has proved to be very useful. This is a vague description of what we are doing. If you would like more details please ask.
     

Share This Page