uwsgi
中的wsgi-file
和file
選項之間有什麼區別?我知道wsgi-file
附帶python插件包,file
是uwsgi
的標準選項。uwsgi差異--wsgi文件和 - 文件
這個工程: $ uwsgi --socket 127.0.0.1:3031 --plugins=python2 --file /srv/http/site/run.py --callable app
這並不: $ uwsgi --socket 127.0.0.1:3031 --plugins=python2 --wsgi-file /srv/http/site/run.py --callable app
給unable to load app 0 (mountpoint='') (callable not found or import error)
幾件事情產生的燒瓶中的應用與uwsgi時,我注意到這確實: $ cd /srv/http/site
與
$ uwsgi --socket 127.0.0.1:3031 --plugins=python2 --wsgi-file run:app
我的設置是這樣的:
site /run.py /app /__init__.py /static /style.css /templates layout.html index.html login.html ...
Apparantly,該wsgi-file
選項不能使用絕對路徑和贖回,或工作我錯過了什麼大事?