Attempting to deploy a python pyramid application with uWSGI -


i'm attempting deploy pyramid application using uwsgi.

the application works fine when served included pyramid development server.

also, have set before, , swear worked @ 1 time.

however, putting in magic phrases right resulting in "this webpage not available"

i'm trying keep of configuration parameters similar possible have don't have worry firewall issues.

uwsgi section in development.ini looks (from: setup uwsgi webserver pyramid (no nginx)):

[uwsgi] socket = localhost:8080 virtualenv = /var/www/finance/finance-env die-on-term = 1 master = 1 #logto = /var/log/wsgi/uwsgi.log   enable-threads = true offload-threads = n py-autoreload = 1 wsgi-file = /var/www/finance/wsgi.py 

wsgy.py looks this:

from pyramid.paster import get_app, setup_logging ini_path = '/var/www/finance/corefinance/development.ini' setup_logging(ini_path) application = get_app(ini_path, 'main') 

here's output right now. seems listening fine on port 8080.

user1@finance1:~$ sudo /var/www/finance/finance-env/bin/uwsgi --ini-paste-logg /var/www/finance/corefinance/development.ini [uwsgi] getting ini configuration /var/www/finance/corefinance/development.ini *** starting uwsgi 2.0.11.2 (64bit) on [fri jan 15 21:13:31 2016] *** compiled version: 4.7.2 on 16 november 2015 20:13:35 os: linux-4.1.5-x86_64-linode61 #7 smp mon aug 24 13:46:31 edt 2015 nodename: finance1 machine: x86_64 clock source: unix detected number of cpu cores: 1 current working directory: /home/user1 detected binary path: /var/www/finance/finance-env/bin/uwsgi !!! no internal routing support, rebuild pcre support !!! uwsgi running root, can use --uid/--gid/--chroot options *** warning: running uwsgi root !!! (use --uid flag) *** processes number limit 3934 memory page size 4096 bytes detected max file descriptor number: 1024 lock engine: pthread robust mutexes thunder lock: disabled (you can enable --thunder-lock) uwsgi socket 0 bound tcp address localhost:8080 fd 3 python version: 3.2.3 (default, feb 20 2013, 14:49:46)  [gcc 4.7.2] set pythonhome /var/www/finance/finance-env python main interpreter initialized @ 0xfd0a10 python threads support enabled server socket listen backlog limited 100 connections mercy graceful operations on workers 60 seconds mapped 145536 bytes (142 kb) 1 cores *** operational mode: single process *** wsgi app 0 (mountpoint='') ready in 1 seconds on interpreter 0xfd0a10 pid: 6275 (default app) mountpoint  configured. skip. *** uwsgi running in multiple interpreter mode *** spawned uwsgi master process (pid: 6275) spawned uwsgi worker 1 (pid: 6282, cores: 1) python auto-reloader enabled 

unless behind proxy such nginx, need use internal http routing support in uwsgi, change

socket = localhost:8080 

to

http = 0.0.0.0:8080 

here uwsgi http support docs


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -