Il giorno 12/set/2010, alle ore 03.42, Italo Maia ha scritto:

> Hi! I tried to deploy a django project with uwsgi with no sucess (cherokee 
> tutorial didn't do the trick for me!) and, after giving up, i tried to delete 
> do uwsgi source. Well, cherokee-admin refused to let me do it. I deleted the 
> vserver prior to deleting the source and, even so, couldn't delete the 
> source. Why is that?



A bit OT for your specific question, but the Cherokee uWSGI wizard is 
(currently)
totally broken. If you manually set the uWSGI source you will have no problem 
but the wizard
make wrong assumptions.

1) virtualenv:

It determines if you are under a virtualenv simply doing

import virtualenv

this is WRONG (i can have the virtualenv in my system, but not using them for 
my project).

If i use virtualenv it could not be in the same directory of the uwsgi xml 
config file


current behaviour: if you have the virtualenv module installed but you do not 
use a virtualenv, uWSGI will
try to load your xml file directory as PYHOME (miserabily failing)

2) xml check

The <app> tag is not mandatory. Most of the users do not need multiple apps so 
they only need the <module> directive.

In this case the wizard must mount the app under /

current behaviour: perfectly valid xml files are rejected

3) argument passing

The wizard should pass argument other than -x only if the xml file is 
incomplete (no <socket> tag), otherwise
it only have to pass -x <xmlfile>

current behaviour: inconsistent uWSGI startup


My proposal:

Remove virtualenv support, if a user need it and use xml config files it will 
(very) probably specify it in the xml file
and not in the command line.

Fallback to / mountpoint if the xml file does not specify an <app> tag

Add --socket commandline option only if the xml file does not contain it

Support for .ini files


If you have not objections i can submit this patches soon

--
Roberto De Ioris
http://unbit.it
JID: [email protected]

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

Reply via email to