在一台机器上管理多个lighttpd和django或flask网站。
simple-site-manager的Python项目详细描述
#简单站点管理器
这将基于站点的简单列表为lighttpd和django fcgi创建配置文件
模板用于输出文件,因此可以方便地为您自己的站点修改和自定义模板。
还有更多。每次当我想挖掘一个新的python驱动的站点时,我都会有一种挫败感,每次我想挖掘一个新的python驱动的站点……
install
>install from pypi:
``sh
>pip install simple site manager
`````
;示例站点列表
``yaml
site1:
>域名:example.com
;可选参数
是的从以下几个领域进行重定向:www.example.com']
project\u根目录目录/opt/django/site1/,
django根目录/opt/django/site1/site1/site1/,
fcgi路径/opt/django/site1/site1/siteman fcgi.py,
up上载目录/opt/static/site1/site1/site1/siteman fcgi.py,
上载目录/opt/static/site1/site1/,
上载目录/opt/static/site1/site1/site1/site1/,
/>www_static_path:/m/,
重定向到https:false,
虚拟环境目录/opt/django/site1/env-site1/,
设置模块:site1.settings
最大过程:3
````
````默认值
/opt/django/sitename/
fcgi文件路径(manage.py所在的位置):/opt/django/sitename/sitename/
静态文件:/opt/static/sitename/
静态上载文件:/opt/static/sitename_uploaded/
设置文件:/opt/django/sitename/sitename/sitename/settings.py配置,可以使用“--print”来预览输出文件。
有关其他使用选项,只需运行“siteman-h”
todo
-更精细地调整站点性能设置。
-将站点fcgi配置存储在/etc/siteman而不是每个项目的目录中
-将lighttpd conf文件也存储在/etc/siteman中?
这将基于站点的简单列表为lighttpd和django fcgi创建配置文件
模板用于输出文件,因此可以方便地为您自己的站点修改和自定义模板。
还有更多。每次当我想挖掘一个新的python驱动的站点时,我都会有一种挫败感,每次我想挖掘一个新的python驱动的站点……
install
>install from pypi:
``sh
>pip install simple site manager
`````
;示例站点列表
``yaml
site1:
>域名:example.com
;可选参数
是的从以下几个领域进行重定向:www.example.com']
project\u根目录目录/opt/django/site1/,
django根目录/opt/django/site1/site1/site1/,
fcgi路径/opt/django/site1/site1/siteman fcgi.py,
up上载目录/opt/static/site1/site1/site1/siteman fcgi.py,
上载目录/opt/static/site1/site1/,
上载目录/opt/static/site1/site1/site1/site1/,
/>www_static_path:/m/,
重定向到https:false,
虚拟环境目录/opt/django/site1/env-site1/,
设置模块:site1.settings
最大过程:3
````
````默认值
/opt/django/sitename/
fcgi文件路径(manage.py所在的位置):/opt/django/sitename/sitename/
静态文件:/opt/static/sitename/
静态上载文件:/opt/static/sitename_uploaded/
设置文件:/opt/django/sitename/sitename/sitename/settings.py配置,可以使用“--print”来预览输出文件。
有关其他使用选项,只需运行“siteman-h”
todo
-更精细地调整站点性能设置。
-将站点fcgi配置存储在/etc/siteman而不是每个项目的目录中
-将lighttpd conf文件也存储在/etc/siteman中?