Trac requires enviroment at root

Repository of web frameworks and applications for Microsoft IIS.
User avatar
Posts: 1
Joined: 28 Jun 2013, 10:02

Trac requires enviroment at root

28 Jun 2013, 10:04

Trac does not honor the path set in environ and always want the env to be at root in a folder trac

User avatar
Posts: 110
Joined: 07 Mar 2012, 10:22

Re: Trac requires enviroment at root

01 Jul 2013, 06:55

Hello,

if you look in web.config of trac application you can see:

Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
    <heliconZoo>
      <application name="TracWsgi.project" >
        <environmentVariables>
          <add name="VIRTUAL_ENV" value="%APPL_PHYSICAL_PATH%\venv" />
          <add name="PATH" value="%APPL_PHYSICAL_PATH%\venv\Scripts;%PATH%" />
          <add name="PYTHONPATH" value="%APPL_PHYSICAL_PATH%\venv\lib\site-packages;%APPL_PHYSICAL_PATH%\venv\lib;%APPL_PHYSICAL_PATH%;%PYTHONPATH%" />
          <add name="DEPLOY_FILE" value="deploy.py" />
          <!-- <add name="DEPLOY_LOG"  value="deploy.log" /> -->
          <add name="ERROR_LOG_DIR"  value="log" />
          <add name="WSGI_APP" value="trac_wsgi.application" />
        </environmentVariables>
      </application>
    </heliconZoo>
    ...
  </system.webServer>
</configuration>


So you can fix PATH or PYTHONPATH environment variables as you need.

Return to Helicon Zoo

Who is online

Users browsing this forum: No registered users and 0 guests