Pastebin

Paste #1441: site.py

< previous paste - next paste>

Pasted by Anonymous Coward

Download View as text

227 print "Starting site.py..."
228
229 if not len(sys.argv) in [2, 3]:
230     print "Usage: %s <language> [port]" % sys.argv[0]
231     exit(1)
232
233 cherrypy.root = Site(sys.argv[1])
234
235 if __name__ == '__main__':
236     if len(sys.argv) == 3:
237         port = int(sys.argv[2])
238     else:
239         port = 8080
240     cherrypy.config.update({'server.socket_port': port})
241     #cherrypy.config.update(file = 'site.conf')
242     cherrypy.config.update('site.conf')
243     cherrypy.server.start()

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.