how to run a scheduler with virtualenv

23 views
Skip to first unread message

A3

unread,
Oct 14, 2019, 3:05:42 PM10/14/19
to web2py-users
Currently I run Web2py using wsgi / Apache using virtualenv in the wsgihandler.py 
I also  use a scheduler using  web2py.py --nogui -K myap
Sofar I didn't pay attention to the virtualenv  as I didn't have any problems.  
Probably because the python version in the virtualenv is equal to the system python version.
I wonder how I can easily use the same virtualenv for the scheduler?
Is it simple like this: 
  source ./python_env/bin/activate
  web2py.py --nogui -K myap
?

Reply all
Reply to author
Forward
0 new messages