Skip to content

Commit 337d089

Browse files
committed
feature #13746 Adding details about Encore dev-server and https (weaverryan)
This PR was squashed before being merged into the 5.0 branch. Discussion ---------- Adding details about Encore dev-server and https Hi! See: https://github.com/symfony/cli/issues/93 Just some missing docs on use the `dev-server` with the Symfony binary. Commits ------- 828eb9b Adding details about Encore dev-server and https
2 parents 0c37145 + 828eb9b commit 337d089

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

frontend/encore/dev-server.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,24 @@ Twig shortcuts (or are :ref:`processing your assets through entrypoints.json <lo
1717
in some other way), you're done: the paths in your templates will automatically point
1818
to the dev server.
1919

20+
Enabling HTTPS using the Symfony Web Server
21+
-------------------------------------------
22+
23+
If you're using the :doc:`Symfony web server </setup/symfony_server>` locally with HTTPS,
24+
you'll need to also tell the dev-server to use HTTPS. To do this, you can reuse the Symfony web
25+
server SSL certificate:
26+
27+
.. code-block:: terminal
28+
29+
# Unix-based systems
30+
$ yarn dev-server --https --pfx=$HOME/.symfony/certs/default.p12
31+
32+
# Windows
33+
$ encore dev-server --https --pfx=%UserProfile%\.symfony\certs\default.p12
34+
35+
dev-server Options
36+
------------------
37+
2038
The ``dev-server`` command supports all the options defined by `webpack-dev-server`_.
2139
You can set these options via command line options:
2240

0 commit comments

Comments
 (0)