Exemple #1
0
 def run():
     # Takes run parameters from configuration.
     serverurl = urlparse(config.SERVER_BASE_URL)
     os.system('celery -A mhn.tasks --config=config beat &')
     os.system('celery -A mhn.tasks --config=config worker &')
     mhn.run(debug=config.DEBUG, host='0.0.0.0',
             port=serverurl.port)
Exemple #2
0
 def runlocal():
     serverurl = urlparse(config.SERVER_BASE_URL)
     mhn.run(debug=config.DEBUG, host='0.0.0.0', port=serverurl.port)
Exemple #3
0
 def run():
     # Takes run parameters from configuration.
     serverurl = urlparse(config.SERVER_BASE_URL)
     os.system('celery -A mhn.tasks --config=config beat &')
     os.system('celery -A mhn.tasks --config=config worker &')
     mhn.run(debug=config.DEBUG, host='0.0.0.0', port=serverurl.port)
Exemple #4
0
#!/usr/bin/env python

if __name__ == '__main__':
    from mhn import mhn
    mhn.run(debug=False, host='0.0.0.0', port=8000)
Exemple #5
0
#!/usr/bin/env python


if __name__ == '__main__':
    from mhn import mhn
    mhn.run(debug=False, host='0.0.0.0', port=8000)
Exemple #6
0
from gevent.wsgi import WSGIServer
from mhn import mhn
mhn.run(debug=True, host='0.0.0.0', port=5000)
http_server = WSGIServer(('', 5000), mhn)
http_server.serve_forever()
Exemple #7
0
 def runlocal():
     serverurl = urlparse(config.SERVER_BASE_URL)
     mhn.run(debug=config.DEBUG, host='0.0.0.0',
             port=serverurl.port)
Exemple #8
0
 def run():
     # Takes run parameters from configuration.
     serverurl = urlparse(config.SERVER_BASE_URL)
     mhn.run(debug=config.DEBUG, host='0.0.0.0',
             port=serverurl.port)