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 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.

Reply via email to