|Version 1 (modified by michele, 9 years ago) (diff)|
Deploying your TG application with an Egg and Easy Install
Q: How can I make a machine in which TG isn't installed, run an app written in TG?
If you quickstarted your application, you should have a setup.py file.
python setup.py bdist_egg
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.
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.
This is a pretty killer feature for application deployment, especially since it will also upgrade TurboGears if you use an app that needs a later version of something, etc. If your application has other dependencies besides TurboGears, those can get installed too.
Goggle group discussion here.