It gets created in the web2py/nginx/ubuntu install script. -Jim
On Thu, Feb 11, 2016 at 11:45 AM, Mirek Zvolský <zvol...@seznam.cz> wrote: > I am trying do the same on Debian 8 Jessie and have a question: > From where do you have /etc/uwsgi/web2py.ini > I have no such file. From that reason your point (5) will fail for me. > > > > > Dne středa 10. února 2016 14:46:37 UTC+1 Jim S napsal(a): >> >> I got this working! >> >> Here is what I did. >> >> 1. Run the normal web2py installation script for nginx/ubuntu >> 2. sudo nano edit /etc/systemd/system/emperor.uwsgi.service >> >> Add these lines >> [Unit] >> Description = uWSGI Emperor >> After = syslog.target >> >> >> [Service] >> ExecStart = /usr/local/bin/uwsgi --ini /etc/uwsgi/web2py.ini >> RuntimeDirectory = uwsgi >> Restart = always >> KillSignal = SIGQUIT >> Type = notify >> StandardError = syslog >> NotifyAccess = all >> >> >> [Install] >> WantedBy = multi-user.target >> >> 3. Exit and save the file >> 4. systemctl enable emperor.uwsgi.service >> 5. systemctl start emperor.uwsgi.service >> >> You should now be able to browse to http://localhost or https://localhost >> >> On restart of the system, this service will automatically start. >> >> Let me know if you have questions. >> >> -Jim >> >> Thanks niphlod for the pointers and encouragement... >> > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/web2py/ZM9IIEjtHSI/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.