Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 10 and Version 11 of DeployAsWindowsService


Ignore:
Timestamp:
05/13/06 15:56:58 (13 years ago)
Author:
sdelatorre
Comment:

fixed the text to match the new code.

Legend:

Unmodified
Added
Removed
Modified
  • DeployAsWindowsService

    v10 v11  
    18181. Copy the code at the end of this page and create a file called 'service.py' with its contents. 
    1919  * '''Note''': this file __does not__ have to be in the same directory as the TG application code. 
    20 2. Edit service.py's "USER EDIT SECTION" with the appropriate information.  A description of each variable follows: 
     202. Edit service.py's "USER EDIT SECTION" where appropriate.  If the service.py file is located in TG application's base directory, then the default values will not need to be changed.  A description of each variable follows: 
    2121  * '''_svc_name_'''  
    2222    * '''Description''': The name of the service (used in the Windows registry). 
    23     * '''Default''': The capitalized name of the current directory. 
     23    * '''Default''': The capitalized name of the directory where the service.py file is located. 
    2424  * '''_svc_display_name_''' 
    2525    * '''Description''': The name that will be displayed in the Windows Services management console. 
    26     * '''Default''': The capitalized name of the current directory. 
     26    * '''Default''': The capitalized name of the directory where the service.py file is located. 
    2727  * '''code_dir''' 
    2828    * '''Description''': The base directory of  the TG application code.  This should be the same directory where the <project-name>-start.py, dev.cfg, or prod.cfg files are located. 
    29     * '''Default''': The current working directory. 
     29    * '''Default''': The directory where the service.py file is located. 
    3030  * '''root_class''' 
    3131    * '''Description''': The fully qualified name of the main TG class.  For example, if you were enabling the [http://www.turbogears.org/docs/wiki20/ 20 Minute Wiki] tutorial as a Windows service, then the fully qualified class name would be 'wiki20.controllers.Root'.