Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding details about Encore dev-server and https #13746

Closed
wants to merge 4 commits into from
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions frontend/encore/dev-server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,24 @@ Twig shortcuts (or are :ref:`processing your assets through entrypoints.json <lo
in some other way), you're done: the paths in your templates will automatically point
to the dev server.

Enabling https & the Symfony Web Server
weaverryan marked this conversation as resolved.
Show resolved Hide resolved
---------------------------------------

If you're using the :doc:`Symfony web server </setup/symfony_server>` locally with https, you'll need to also
tell the dev-server to use https. To do this, you can reuse the Symfony web
server SSL certificate:

.. code-block:: terminal

# Unix-based systems
$ yarn dev-server --https --pfx=$HOME/.symfony/certs/default.p12

# Windows
$ encore dev-server --https --pfx=%UserProfile%\.symfony\certs\default.p12

dev-server Options
------------------

The ``dev-server`` command supports all the options defined by `webpack-dev-server`_.
You can set these options via command line options:

Expand Down