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 2 and Version 3 of TurboGearsOnSharedHostingAccount


Ignore:
Timestamp:
04/14/06 03:52:15 (13 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TurboGearsOnSharedHostingAccount

    v2 v3  
    22 
    33''it's a bit lengthy, probably need to be trimmed'' 
     4 
     5== CherryPy configuration == 
     6 
     7To configure Apache/Cherrypy read [http://www.cherrypy.org/wiki/BehindApache this]. You'll need a port assigned to you by hoster to forward requests to. 
    48 
    59== Prepare non-root python environment == 
     
    1721 
    1822{{{ 
    19 $ svn co http://www.turbogears.org/svn/turbogears/trunk turbogears 
    20 $ cd turbogears 
    21 $ cd thirdparty/cherrypy/ 
    22 $ ~/bin/easy_install -D -s ~/bin/ . 
    23 $ cd - 
    24 $ cd thirdparty/kid/ 
    25 $ ~/bin/easy_install -D -s ~/bin/ . 
    26 $ cd - 
    27 $ ~/bin/easy_install -D -s ~/bin/ . 
     23$ svn co http://www.turbogears.org/svn/turbogears/branches/1.0 turbogears 
    2824}}} 
    2925 
     
    3632== Configure the application == 
    3733 
    38 This is a matter of writing proper prodcfg.py. 
     34This is a matter of writing proper prod.cfg and putting it to correct place. 
    3935 
    4036The settings to pay attention to are: `sqlobject.dburi`, server.socket_port and server.log_file. In a shared hosting setup, the socket_port and log directory to use are given by the hoster so just make sure you've specified them correctly. 
     
    4339 
    4440{{{ 
    45 path("/") 
     41[/] 
    4642base_url_filter.on = True 
    47 base_url_filter.useXForwardedHost = True 
     43base_url_filter.use_x_forward_host = True 
    4844}}} 
    4945 
    5046This ensures CherryPy will use "X-Forwarded-Host" header set by Apache to figure out publicly-visible address of the application. 
    51  
    52 == Running the application == 
    53  
    54 One final tidbit is how the application is started and run. On python-hosting.com they use a special "launching" .cgi that need to be updated to use your start-app.py script (which is put into ~/bin by setuptools). 
    5547 
    5648== References == 
     
    5850  * ApacheIntegration 
    5951  * DeployWithAnEgg  
    60   * [http://maxischenko.in.ua/blog/entries/79/howto-installing-turbogears-app-latest-on-shared-hosting/ original blog entry by Max Ischenko]. 
     52  * http://www.cherrypy.org/wiki/BehindApache 
    6153 
    62 == needs edits == 
    63  
    64 setuptools has made non-root installs easier than this.