This creates configuration files for lighttpd and django fcgi, based on a simple list of sites.
Templates are used for the output files so they can easily be modified and customised for your own sites.
You can either use a global config file or individual files for each project.
The project is in the early stages, barely tested. More to come. Born from the frustration I felt every time I wanted to delpoy a new python driven site...
Install from pypi:
pip install simple-site-manager
## Example site list
# optional arguments
The paths in the example above are the defaults if nothing is specified in the config file.
In a future versions you will be able to set your defaults yourself.
Here are some defaults:
root of your project: /opt/django/sitename/
fcgi file path (where manage.py is located): /opt/django/sitename/sitename/
static files: /opt/static/sitename/
static uploaded files: /opt/static/sitename_uploaded/
settings file: /opt/django/sitename/sitename/sitename/settings.py
settings module: sitename.settings
virtualenv path: /opt/django/sitename/env-sitename/
You will need to run it as root to write lighttpd configuration, feel free to use `--print` to preview the output files.
For additional usage options, just run `siteman -h`
- More fine tuning of site performance settings.
- Store site fcgi config in /etc/siteman instead of each project's directory
- Store lighttpd conf files in /etc/siteman as well?
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.