1 Installiere RabbitMQ für asynchrone Aufgaben
2 ============================================
4 Um asynchrone Aufgaben zu starten (nützlich z.B. für große Imports), können wir RabbitMQ nutzen.
9 Du musst RabbitMQ auf deinem Server installiert haben.
16 wget https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
17 apt-key add rabbitmq-signing-key-public.asc
19 apt-get install rabbitmq-server
21 Konfiguration und Starten
22 ~~~~~~~~~~~~~~~~~~~~~~~~~
26 rabbitmq-plugins enable rabbitmq_management # (useful to have a web interface, available at http://localhost:15672/ (guest/guest)
27 rabbitmq-server -detached
37 Konfigure RabbitMQ in wallabag
38 ------------------------------
40 Bearbeite die Datei ``app/config/parameters.yml``, um die RabbitMQ Konfiguration einzurichten. Die Standardkonfiguration sollte ok sein:
44 rabbitmq_host: localhost
47 rabbitmq_password: guest
49 Enable RabbitMQ in wallabag
50 ---------------------------
52 In internal settings, in the **Import** section, enable RabbitMQ (with the value 1).
54 Starte den RabbitMQ Consumer
55 ----------------------------
57 Abhängig von welchem Service du importieren möchtest, solltest du einen Cron Job aktivieren (oder mehrere, wenn du viele unterstützen willst):
62 bin/console rabbitmq:consumer -e=prod import_pocket -w
64 # for Readability import
65 bin/console rabbitmq:consumer -e=prod import_readability -w
67 # for Instapaper import
68 bin/console rabbitmq:consumer -e=prod import_instapaper -w
70 # for wallabag v1 import
71 bin/console rabbitmq:consumer -e=prod import_wallabag_v1 -w
73 # for wallabag v2 import
74 bin/console rabbitmq:consumer -e=prod import_wallabag_v2 -w
77 bin/console rabbitmq:consumer -e=prod import_firefox -w
80 bin/console rabbitmq:consumer -e=prod import_chrome -w