Leandro Severino schrieb:
> Hi,
> This is my first post.
> Well, I have a hosting company(http://www.regs.com.br) and I want
> provide a professional hosting solution to TurboGears.
> If possible, I want/need a "Step-By-Step" to configure this scene.
> Somebody can help me ?
If you really want to provide a good TurboGears hosting for your customers, you
should provide the following:
- set up superverisord, to start and stop the application (or build a web
application to do it)
- Set up different service configurations with different config files, i.e.
develop/staging/production mode
- set up a full TurboGears with all dependencies installation with
workingenv.py for every user, so that users don't have to care about version
incomptabilities.
So the basic procedure would be:
- create a home directory for each user and in there create a directory for
static web files
- point a virtual host to a subdirectory of this home directory
- set up virtual host with the application name as a reverse proxy to unique
port where the user's TG app will listen
- create a config file for the user's TG app with this port (repeat that for
staging/production config)
- create a working environment with a TurboGears installation in the user's
home directory
- create a start script for the TG app that activates the working env and uses
the config file with the right port
- set up a supervisor.conf entry for the start script (repeat that for
staging/production config)
- Then allow the user to install his app as an egg and give him an interface to
change the configuration file to set the database URI and such things
- Extra points: provide good default logging configuration and an interface to
view/download log files
I hope that gives you some ideas.
Chris
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---