The "web2py.py" script can take many command-line arguments specifying the maximum number of threads, enabling of SSL, etc. For a complete list type:
>>> python web2py.py -h
For example, a shell script called async_events.sh can be called at reboot as follows:
#! /bin/bash
cd /home/www-data/web2py
python web2py.py -S YOUR_APPLICATION_NAME -M -R applications/YOUR_APPLICATION_NAME/private/async_events.py
import time
def create_pdfs(db):
while True:
ALL YOUR PDF PROCESSING LOGIC HERE
create_pdfs(db)
--
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/YHsRsh0uQGo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.