Is there a way to run the bottles app in daemon mode
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 to share