aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/en/developer
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@smile.fr>2016-01-15 08:24:32 +0100
committerJeremy Benoist <jeremy.benoist@gmail.com>2016-09-11 21:57:09 +0200
commit56c778b4152a1b886353933276ee3626e4e8c004 (patch)
tree203a2bc2fc36016b5a51703b04d86b034d9393c3 /docs/en/developer
parent59758d8fe5ad5ff554391515a78d84b0d47bdb76 (diff)
downloadwallabag-56c778b4152a1b886353933276ee3626e4e8c004.tar.gz
wallabag-56c778b4152a1b886353933276ee3626e4e8c004.tar.zst
wallabag-56c778b4152a1b886353933276ee3626e4e8c004.zip
1st draft for rabbitMQ
Diffstat (limited to 'docs/en/developer')
-rw-r--r--docs/en/developer/rabbitmq.rst49
1 files changed, 49 insertions, 0 deletions
diff --git a/docs/en/developer/rabbitmq.rst b/docs/en/developer/rabbitmq.rst
new file mode 100644
index 00000000..a17e6e4d
--- /dev/null
+++ b/docs/en/developer/rabbitmq.rst
@@ -0,0 +1,49 @@
1Install RabbitMQ for asynchronous tasks
2=======================================
3
4In order to launch asynchronous tasks (useful for huge imports for example), we use RabbitMQ.
5
6Requirements
7------------
8
9You need to have RabbitMQ installed on your server.
10
11Installation
12~~~~~~~~~~~~
13
14.. code:: bash
15
16 wget https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
17 apt-key add rabbitmq-signing-key-public.asc
18 apt-get update
19 apt-get install rabbitmq-server
20
21Configuration and launch
22~~~~~~~~~~~~~~~~~~~~~~~~
23
24.. code:: bash
25
26 rabbitmq-plugins enable rabbitmq_management # (useful to have a web interface, available at http://localhost:15672/ (guest/guest)
27 rabbitmq-server -detached
28
29Stop RabbitMQ
30~~~~~~~~~~~~~
31
32.. code:: bash
33
34 rabbitmqctl stop
35
36
37Configure RabbitMQ in wallabag
38------------------------------
39
40Edit your ``parameters.yml`` file to edit RabbitMQ configuration.
41
42Launch RabbitMQ consumer
43------------------------
44
45Put this command in a cron job:
46
47.. code:: bash
48
49 bin/console rabbitmq:consumer entries -w \ No newline at end of file