On 31/03/2010, at 03:42, Yann Malet wrote: > Cherokee does not yet have its own, :-), so i was wondering what would be the > best way to do this in cherokee world ? In order to make my question a bit > more specific how would you automate the creation of cherokee's virtual > servers ?
Well, you'd only have to generate a cherokee.conf file with the desired configuration. It could be as simple as replacing a few variables in a template configuration file. > Here it is the pointer to the nginx equivalent : > http://bitbucket.org/jokull/kraftwerk/src/6b0044d95173/kraftwerk/templates/scripts/project_setup.sh#cl-12 > With 'conf/nginx.conf' defined here : > http://bitbucket.org/jokull/kraftwerk/src/6b0044d95173/kraftwerk/templates/conf/nginx.conf Yeah, something like that would just work. The simples way would be to generate a configuration file with cherokee-admin. Then you'd have to edit it by hand to replace values with “{{ macros }}”. Once you get that configuration template file, the rest would be basically the same as in the scripts you posted. -- Octality http://www.octality.com/ _______________________________________________ Cherokee mailing list [email protected] http://lists.octality.com/listinfo/cherokee
