Error on the nginix-uwsgi-ubunto setup script?

56 views
Skip to first unread message

Cynthia Butler

unread,
Apr 26, 2014, 4:51:04 AM4/26/14
to web...@googlegroups.com
Which file extension is correct, .xml or .ini , in this snippet from
"web2py/scripts/setup-web2py-nginx-uwsgi-ubuntu.sh"?


# Create configuration file /etc/uwsgi/web2py.xml
echo '[uwsgi]

socket = /tmp/web2py.socket
pythonpath = /home/www-data/web2py/
mount = /=wsgihandler:application
processes = 4
master = true
harakiri = 60
reload-mercy = 8
cpu-affinity = 1
stats = /tmp/stats.socket
max-requests = 2000
limit-as = 512
reload-on-as = 256
reload-on-rss = 192
uid = www-data
gid = www-data
cron = 0 0 -1 -1 -1 python /home/www-data/web2py/web2py.py -Q -S welcome -M -R scripts/sessions2trash.py -A -o
no-orphans = true
' >/etc/uwsgi/web2py.ini
...

## to reload web2py only (without restarting uwsgi)
# touch /etc/uwsgi/web2py.xml

Thank you!




Cynthia Butler

unread,
Apr 26, 2014, 12:13:01 PM4/26/14
to web...@googlegroups.com
The answer is: .ini

It took me two days to find this bug and fix it. I'm a noob to web2py and nginx. I wanted to make sure my production setup works before I develop a web2py site because that always causes me the most trouble. I haven't learned how to submit the fix yet, but it is such an easy one to do and would save other noob's alot of time/frustration.

Can someone submit the fix for me or should I learn to do it?

Thank you for web2py, I really like this framework -- my favorite so far!

Niphlod

unread,
Apr 26, 2014, 2:48:37 PM4/26/14
to web...@googlegroups.com
it's an ini file.
all "errors" are in commented lines...I'll send a PR to fix it.

Cynthia Butler

unread,
Apr 26, 2014, 8:04:18 PM4/26/14
to web...@googlegroups.com
Thank you very much!
Reply all
Reply to author
Forward
0 new messages