Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd1bdedf

Browse files
Update mercure.rst: Moving Mercure's prod hub further upwards
Page:https://symfony.com/doc/5.x/mercure.htmlReason: If people need Mercure's binary *in any case* (for prod), this should be mentioned first.
1 parent77bb19f commitd1bdedf

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

‎mercure.rst‎

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,28 @@ Run this command to install the Mercure support:
4848
4949
$ composer require mercure
5050
51+
Running a Mercure Hub
52+
~~~~~~~~~~~~~~~~~~~~~
53+
5154
To manage persistent connections, Mercure relies on a Hub: a dedicated server
5255
that handles persistent SSE connections with the clients.
5356
The Symfony app publishes the updates to the hub, that will broadcast them to
5457
clients.
5558

59+
..raw::html
60+
61+
<objectdata="_images/mercure/hub.svg"type="image/svg+xml"
62+
alt="Flow diagram showing a Symfony app communicating with the Mercure Hub using a POST request, and the Mercure Hub using SSE to communicate to the clients."
63+
></object>
64+
65+
In production, you have to install a Mercure hub by yourself.
66+
An official and open source (AGPL) hub based on the Caddy web server
67+
can be downloaded as a static binary from `Mercure.rocks`_.
68+
A Docker image, a Helm chart for Kubernetes
69+
and a managed, High Availability Hub are also provided.
70+
5671
Thanks to:doc:`the Docker integration of Symfony</setup/docker>`,
57-
:ref:`Flex<symfony-flex>` proposes to install a Mercure hub.
72+
:ref:`Flex<symfony-flex>` proposes to install a Mercure hub for development.
5873
Run ``docker-compose up`` to start the hub if you have chosen this option.
5974

6075
If you use the:doc:`Symfony Local Web Server</setup/symfony_server>`,
@@ -64,23 +79,7 @@ you must start it with the ``--no-tls`` option.
6479
6580
$ symfony server:start --no-tls -d
6681
67-
Running a Mercure Hub
68-
~~~~~~~~~~~~~~~~~~~~~
69-
70-
..raw::html
71-
72-
<objectdata="_images/mercure/hub.svg"type="image/svg+xml"
73-
alt="Flow diagram showing a Symfony app communicating with the Mercure Hub using a POST request, and the Mercure Hub using SSE to communicate to the clients."
74-
></object>
75-
76-
If you use the Docker integration, a hub is already up and running,
77-
and you can go straight to the next section.
78-
79-
Otherwise, and in production, you have to install a hub by yourself.
80-
An official and open source (AGPL) Hub based on the Caddy web server
81-
can be downloaded as a static binary from `Mercure.rocks`_.
82-
A Docker image, a Helm chart for Kubernetes
83-
and a managed, High Availability Hub are also provided.
82+
If you use the Docker integration, a hub is already up and running.
8483

8584
Configuration
8685
-------------

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp