seems to be 'soft' when running on rocket on my pc (windows)
how to make it 'hard' ?

my file name is wsgi.py in web2py folder and looks like that

def start_server():
#patch
from gevent import monkey
monkey.patch_all()
 #web2py config
import os, sys

sys.path.insert(0, '')
path = os.path.dirname(os.path.abspath(__file__))
 if not path in sys.path:
sys.path.append(path)
 if not os.path.join(path,'site-packages') in sys.path:
sys.path.append(os.path.join(path,'site-packages'))
 os.chdir(path)

 try:
import settings
except:
from gluon.settings import settings
settings.web2py_crontype = 'hard'
 #web2py app
import gluon.main
application = gluon.main.wsgibase
  #run server
from gevent import pywsgi
server = pywsgi.WSGIServer(('', 80), application)
server.serve_forever()


start_server()

Reply via email to