Jater

schoolserver.py

Apr 23rd, 2015
51
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import os
  2. import cherrypy
  3.  
  4. import server
  5.  
  6. if __name__ == "__main__":
  7.     cherrypy.config.update({"engine.autoreload.on": False, "server.socket_host": os.getenv("IP", "0.0.0.0"), "server.socket_port": int(os.getenv("PORT", 80))})
  8.  
  9.     cherrypy.quickstart(server.Server(), "/", config={"/": {}})
RAW Paste Data