Changeset - 78423a65d4bc
[Not reviewed]
default
0 1 0
drewp@bigasterisk.com - 11 years ago 2014-05-25 21:30:15
drewp@bigasterisk.com
rdfdb to use LIGHT9_SHOW env, not a flag
Ignore-this: 3c3c3caae85170f9b7a8bf1007f765c9
1 file changed with 1 insertions and 7 deletions:
0 comments (0 inline, 0 general)
bin/rdfdb
Show inline comments
 
@@ -433,25 +433,19 @@ class NoExts(cyclone.web.StaticFileHandl
 

	
 
if __name__ == "__main__":
 
    logging.basicConfig()
 
    log = logging.getLogger()
 

	
 
    parser = optparse.OptionParser()
 
    parser.add_option('--show',
 
        help='show URI, like http://light9.bigasterisk.com/show/dance2008',
 
                      default=showconfig.showUri())
 
    parser.add_option("-v", "--verbose", action="store_true",
 
                      help="logging.DEBUG")
 
    (options, args) = parser.parse_args()
 

	
 
    log.setLevel(logging.DEBUG if options.verbose else logging.INFO)
 

	
 
    if not options.show:
 
        raise ValueError("missing --show http://...")
 

	
 
    db = Db(topDirsToWatch=['show/dance2013'])
 
    db = Db(topDirsToWatch=[os.environ['LIGHT9_SHOW']])
 

	
 
    from twisted.python import log as twlog
 
    twlog.startLogging(sys.stdout)
 

	
 
    port = 8051
 
    reactor.listenTCP(port, cyclone.web.Application(handlers=[
0 comments (0 inline, 0 general)