Hello,

I continue to put some work into
cherokee-admin-api<http://bitbucket.org/yml/cherokee-admin-api/> and
I a reach a point where I have something that start to usable. However hit
the following road block.

"cherokee-admin -u -C `pwd`/cherokee-gene.conf"  does not allow me to use
cherokee-admin to edit this file ?
Here it is the config file : http://dpaste.com/201273/
cherokee-admin return a 503

"cherokee -C `pwd`/cherokee-gene.conf -t" tells that the config_file is
valid.

If someone is interested here it is the code used to generate the config
file:

        from cherokee_admin_api import (get_version,
                                validate_config_file,
                                generate_config)

        from cherokee_admin_api.admin import Admin
        generate_config(config_file="cherokee-gene.conf")
        admin = Admin(config_file="cherokee-gene.conf")
        admin.create_vserver(nick="my_vserver", document_root="/dev/null")
        my_vserver = admin.get_vserver_by_nick('my_vserver')
        admin.create_source(nick="my-uwsgi-source", type="host",
                            host="127.0.0.1:1234")
        rule_dict = {
            "disabled" : "0",
            "document_root" : "/var/www/example.com/foo",
            "handler" : "file",
            "handler!iocache" : "1",
            "match" : "directory",
            "match!directory" : "/foo",
            "match!final" : "1",
            "no_log" : "0",
            "only_secure" : "0",
        }
        admin.create_rule(vserver_path=my_vserver, **rule_dict)

Regards,
--yml
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to