Beispiel #1
0
def refresh():
    settings.SQLITE3_CONNECTIONURL = REPOSITORYCONNECTIONURL
    os.chdir(REPOSITORYROOTLOCATION)
    os.system("rm " + REPOSITORYCONNECTIONURL)
    os.system("rm -Rf " + REPOSITORYLOCATION)
    os.system("tar -xzf " + REPOSITORYPACKED)
    indexer.setup()
Beispiel #2
0
def refresh():
    settings.SQLITE3_CONNECTIONURL = REPOSITORYCONNECTIONURL
    os.chdir(REPOSITORYROOTLOCATION)
    os.system("rm " + REPOSITORYCONNECTIONURL)
    os.system("rm -Rf " + REPOSITORYLOCATION)
    os.system("tar -xzf " + REPOSITORYPACKED)
    indexer.setup()
Beispiel #3
0
# if (settings.DEBUG == True):
#    traceback.print_tb()
            

# minimal web server.  serves files relative to the
# current directory.
logging.basicConfig(level=logging.INFO)
if settings.DEBUG:
    logging.getLogger("blendfile").setLevel(logging.DEBUG)
    logging.getLogger("server").setLevel(logging.DEBUG)
    logging.getLogger("indexer").setLevel(logging.DEBUG)
else:
    logging.getLogger("blendfile").setLevel(logging.INFO)
    logging.getLogger("server").setLevel(logging.INFO)
    logging.getLogger("indexer").setLevel(logging.INFO)
indexer.setup()
os.chdir("www")
httpd=None
log.info("Blender-aid "+str(settings.VERSION)+" ["+settings.VERSION_DESCRIPTION+"]")
log.info("starting server on "+str(settings.WEBSERVER_BINDING))
while httpd == None:
    try:
        httpd = SocketServer.TCPServer(settings.WEBSERVER_BINDING, MyHandler)
    except:
        httpd = None
        log.info("waiting")
        time.sleep(5)
        
log.info("server started on "+str(settings.WEBSERVER_BINDING))
log.info("browse to http://"+str(settings.WEBSERVER_BINDING[0])+":"+str(settings.WEBSERVER_BINDING[1])+"/")
httpd.serve_forever()
Beispiel #4
0
# if (settings.DEBUG == True):
#    traceback.print_tb()

# minimal web server.  serves files relative to the
# current directory.
logging.basicConfig(level=logging.INFO)
if settings.DEBUG:
    logging.getLogger("blendfile").setLevel(logging.DEBUG)
    logging.getLogger("server").setLevel(logging.DEBUG)
    logging.getLogger("indexer").setLevel(logging.DEBUG)
else:
    logging.getLogger("blendfile").setLevel(logging.INFO)
    logging.getLogger("server").setLevel(logging.INFO)
    logging.getLogger("indexer").setLevel(logging.INFO)
indexer.setup()
os.chdir("www")
httpd = None
log.info("Blender-aid " + str(settings.VERSION) + " [" +
         settings.VERSION_DESCRIPTION + "]")
log.info("starting server on " + str(settings.WEBSERVER_BINDING))
while httpd == None:
    try:
        httpd = SocketServer.TCPServer(settings.WEBSERVER_BINDING, MyHandler)
    except:
        httpd = None
        log.info("waiting")
        time.sleep(5)

log.info("server started on " + str(settings.WEBSERVER_BINDING))
log.info("browse to http://" + str(settings.WEBSERVER_BINDING[0]) + ":" +