Я использую debian wheezy. python2.7, uwsgi, bottle из пакетов.
есть простое приложение:
#site.py import bottle @bottle.route("/") def hello(): return "Hello, World!" site=bottle.app()
uwsgi --plugin python -s :8081 --module site --callable site
Python version: 2.7.3rc2 (default, Apr 22 2012, 22:55:44)а если:
*** Operational MODE: single process ***
unable to load app 0 (mountpoint='') (callable not found or import error)
*** no app loaded. going in full dynamic mode ***
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (and the only) (pid: 4849, cores: 1)
uwsgi --plugin python -s :8081 --file site.py --callable site
Python version: 2.7.3rc2 (default, Apr 22 2012, 22:55:44)Почему так?
*** Operational MODE: single process ***
WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x91bad40 pid: 4854 (default app)
*** uWSGI is running in multiple interpreter mode ***
spawned uWSGI worker 1 (and the only) (pid: 4854, cores: 1)