[web2py] Re: uwsgi not logging when web2py installed on ubuntu 18.04 with nginx with setup script

2019-03-12 Thread Toby
I've narrowed down the problem. The file /etc/init/uwsgi-emperor.conf is not being created because the directory /etc/init doesn't exist. The directory /etc/init doesn't exist because it's for Upstart configuration, and Ubuntu 17.10 and higher don't support upstart

[web2py] Re: uwsgi not logging when web2py installed on ubuntu 18.04 with nginx with setup script

2019-03-12 Thread Toby
OK, so now I realise that the script setup-web2py-nginx-uwsgi-ubuntu.sh creates init scripts for both upstart and systemd (why? Is that to support multiple versions of Ubuntu?). It writes to the systemd sc

[web2py] Re: uwsgi not logging when web2py installed on ubuntu 18.04 with nginx with setup script

2019-03-12 Thread Toby
Got it working. Here's what I needed to do: 1. Add the following line to the bottom of /etc/uwsgi/web2py.ini *logto = /var/log/uwsgi/uwsgi.log* 2. Comment out this line (by putting a # in front): *StandardError = syslog* in the file /etc/systemd/system/emperor.uwsgi.service The best way to edit t