When run as python code.py  python interpreter search for __main__ and
execute code.py as main file. Uwsgi don't run Python application as a
'main', it calls a method instead (that you've defined in your ini file, if
doesn't it calls 'app' method by default.)
On Oct 18, 2014 5:50 AM, "易思龙" <[email protected]> wrote:

> `code .py` is a entrance of web.py
> `uwsgi.ini` is a config of uwsgi(entrance is also code.py)
>
> I can run it with two kind of command:
>
>
>    1. python code.py
>    2. uwsgi uwsgi.ini
>
> what's  difference?
>
> --
> You received this message because you are subscribed to the Google Groups
> "web.py" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/webpy.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to