Explorar el Código

Update monitoring.rst

fixed the doc on how to change flower port.
Added information on how to connect to a distant broker.

Informations found on https://github.com/mher/flower#usage,
I thought it was useful to have it in this doc too,
as it is quite necessary for the flower use.
Guillaume Gendre hace 12 años
padre
commit
fb77402ee4
Se han modificado 1 ficheros con 19 adiciones y 2 borrados
  1. 19 2
      docs/userguide/monitoring.rst

+ 19 - 2
docs/userguide/monitoring.rst

@@ -234,11 +234,28 @@ Running the flower command will start a web-server that you can visit:
 
     $ celery flower
 
-The default port is http://localhost:5555, but you can change this using the
-:option:`--port` argument::
+The default port is http://localhost:5555, but you can change this using the `--port` argument:
+
+.. code-block:: bash
+
+    $ celery flower --port=5555
+
+Broker URL can also be passed through the `--broker` argument :
+
+.. code-block:: bash
+
+    $ celery flower --broker=amqp://guest:guest@localhost:5672//
+    or
+    $ celery flower --broker=redis://guest:guest@localhost:6379/0
+
+Then, you can visit flower in your web browser :
+
+.. code-block:: bash
 
     $ open http://localhost:5555
 
+
+
 .. _monitoring-celeryev:
 
 celery events: Curses Monitor