def main():
    fix_matplotlib()
    os.environ.setdefault("DBPARAM_LOCATION", "/etc/DBParam.xml")
    filename = resource_filename("gratia.config", "website-basic.xml")
    WebHost(file=filename)
    cherrypy.engine.start()
    cherrypy.engine.block()
Exemplo n.º 2
0
def main():
    if '-d' in sys.argv:
        daemonize("/var/run/GratiaWeb.pid")
    fix_matplotlib()
    filename = resource_filename("gratia.config", "website.xml")
    WebHost(file=filename)
    cherrypy.engine.start()
    cherrypy.engine.block()
Exemplo n.º 3
0
def main():
    filename = resource_filename("gratia.config", "website-basic.xml")
    WebHost(file=filename)
    #cherrypy.server.quickstart()
    cherrypy.engine.start()
    cherrypy.engine.block()
Exemplo n.º 4
0
#!/usr/bin/env python

from graphtool.web import WebHost
import cherrypy

if __name__ == '__main__':
    WebHost(file='$CONFIG_ROOT/website.xml')

    cherrypy.server.quickstart()
    cherrypy.engine.start()
#!/usr/bin/env python

from graphtool.web import WebHost
import cherrypy

if __name__ == '__main__':
  WebHost( file='../config/website.xml' ) 
  cherrypy.engine.start() 
  cherrypy.engine.block()