예제 #1
0
파일: manage.py 프로젝트: Adaptivestack/mhn
 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)
예제 #2
0
 def runlocal():
     serverurl = urlparse(config.SERVER_BASE_URL)
     mhn.run(debug=config.DEBUG, host='0.0.0.0', port=serverurl.port)
예제 #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)
예제 #4
0
#!/usr/bin/env python

if __name__ == '__main__':
    from mhn import mhn
    mhn.run(debug=False, host='0.0.0.0', port=8000)
예제 #5
0
파일: mhn.py 프로젝트: Adaptivestack/mhn
#!/usr/bin/env python


if __name__ == '__main__':
    from mhn import mhn
    mhn.run(debug=False, host='0.0.0.0', port=8000)
예제 #6
0
파일: test_run.py 프로젝트: santiago92/mhn
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()
예제 #7
0
파일: manage.py 프로젝트: Adaptivestack/mhn
 def runlocal():
     serverurl = urlparse(config.SERVER_BASE_URL)
     mhn.run(debug=config.DEBUG, host='0.0.0.0',
             port=serverurl.port)
예제 #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)