Hi,

I cant get uWSGI to work with flask sad to say. Below is my error.


Traceback (most recent call last):
  File "/var/feed-uiserverside/wsgi.py", line 10, in <module>
    from app import app
ImportError: No module named app
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 master process (pid: 30409)
spawned uWSGI worker 1 (pid: 30410, cores: 20)
*** running gevent loop engine [addr:0x47df60] ***


Here is how I start via supervisor

[program:frontend]
environment=PYTHONPATH=/var/feed-uiserverside/
autostart=true
autorestart=true
process_name = frontend-%(process_num)s
command = /usr/local/bin/uwsgi --yaml /var/frontend.uwsgi.yaml
--port=%(process_num)s
--log_file_prefix=%(here)s/logs/%(program_name)s-%(process_num)s.log
numprocs_start = 8030

[group:frontend_server]
programs=frontend

uwsgi:
  pidfile: /var/run/frontend.pid
  loop: gevent
  gevent: 20
  carbon: <%=@carbon_ip_address%>:2003
  socket: 127.0.0.1:8030
  processes: <%= node["cpu"]["total"] %>
  b: 32768
  master: true
  enable-threads: true
  listen: 100
  logto2: /tmp/frontend.log
  touch-reload: /var/feed-uiserverside/wsgi.py
  master-fifo: /tmp/uwsgi_frontend_master_fifo
  wsgi-file: /var/feed-uiserverside/wsgi.py
  pp: [/var/feed-uiserverside/,/var/feed-uiserverside/app/]
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to