uWSGI Python 스크립트를 배포할 수 없습니다: 탑재 지점 = 0

uWSGI Python 스크립트를 배포할 수 없습니다: 탑재 지점 = 0

내 응용 프로그램을 실행할 때 다음 오류가 발생합니다.

*** Operational MODE: single process ***
unable to load app 0 (mountpoint='') (callable not found or import error)
*** no app loaded. going in full dynamic mode ***

내가 실행하는 데 사용하는 명령은 다음과 같습니다.

/usr/local/bin/uwsgi -L -w app:app --ini /etc/configuration/uwsgi/uwsgi.ini --uid deploy

나의uWSIG구성은 다음과 같습니다.

[uwsgi]
socket = 127.0.0.1:8001
master = true
processes = 1
pidfile = /tmp/app-uwsgi.pid
chdir = /etc/application

내 감독자 구성은 다음과 같습니다.

[unix_http_server]
file=/tmp/supervisor.sock   ; (the path to the socket file)

[supervisord]
logfile=/var/log/supervisord.log                  ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=50MB                             ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=10                                ; (num of main logfile rotation backups;default 10)
loglevel=info                                     ; (log level;default info; others: debug,warn,trace)
nodaemon=false                                    ; (start in foreground if true;default false)
minfds=1024                                       ; (min. avail startup file descriptors;default 1024)
minprocs=200                                      ; (min. avail process descriptors;default 200)
; user=supervisor_user                            ; Running as root is better than nothing

[supervisorctl]
serverurl=unix:///tmp/supervisor.sock             ; use a unix:// URL  for a unix socket

[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface

[program:app]
command=/usr/local/bin/uwsgi -L -w app:app --ini /etc/configuration/uwsgi/uwsgi.ini --uid deploy
stdout_logfile=/var/log/uwsgi.log
redirect_stderr=true
stopsignal=INT
autorestart=true
priority=800

내가 어디로 잘못 가고 있습니까?

답변1

이 작업을 수행하려면 uwsgi ini에서 virtualenv 위치를 지정해야 했는데 정상적으로 작동했습니다.

관련 정보