Is there a way to run the bottles app in daemon mode

I have a flash based web application (python) and I want to run it in daemon mode. Is there a way to run it in daemon mode

thank

+3


source to share


1 answer


Sure. Install BottleDaemon 0.1.0 on your OS and modify your router file as follows:



    from bottledaemon import daemon_run
    from bottle import route

    @route("/hello")
    def hello():
      return "Hello World"

    # The following lines will call the BottleDaemon script and launch a daemon in the background.
    if __name__ == "__main__":
      daemon_run()

      

+2


source







All Articles