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 6 and Version 7 of DeployWithAnEgg


Ignore:
Timestamp:
04/29/06 15:11:02 (13 years ago)
Author:
roger.demetrescu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeployWithAnEgg

    v6 v7  
    1 = Deploying your TG application with an Egg and Easy Install = 
    2  
    3 === Q: How can I make a machine in which TG isn't installed, run an app written in TG? === 
    4  
    5 If you quickstarted your application, you should have a setup.py file. 
    6  
    7 {{{python setup.py bdist_egg}}}  
    8  
    9 will give you an Egg file that you can copy over to your deployment machine and easy_install. When you do that, your start script is available to start up the TurboGears server. You also need a prodcfg.py that you will call your start script with, as well as an existing database that your project will use (specified in prodcfg.py). This can be the same database as the one you created with 
    10  
    11 {{{tg-admin sql create}}} 
    12  
    13 while developing your application. 
    14  
    15 Note also that as long as the setup.py lists TurboGears as a requirement, it should be possible for somebody to install your application with just the .egg and easy_install - including the installation of TurboGears itself, with all its dependencies. 
    16  
    17 This is a pretty killer feature for application deployment, especially since it will also upgrade TurboGears if you use an app that needs a 
    18 later version of something, etc. If your application has other dependencies besides TurboGears, those can get installed too. 
    19  
    20 Google group discussion [http://groups.google.com/group/turbogears/browse_frm/thread/3d74e803cd4b0cae/b85228b2869aaa84#b85228b2869aaa84 here]. 
    21  
    22  
    23 == needs edits == 
    24 (This page can use some edits... I believe you can now pass an egg name to tg-admin sql, so you should be able to run tg-admin sql create on your production box as well at this point.) 
     1{{{ 
     2#!html 
     3<br> 
     4<div style="display:block; padding: 4px; border: 2px solid red; color: #C00; font-weight:bold;"> 
     5Note: this entry was moved to TurboGears newsdoc (DeployWithAnEgg.html) 
     6</div> 
     7<br> 
     8}}}