Skip to content

[Encore] [Frontend] Replace deprecated encore public path option #16196

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

Closed
wants to merge 1 commit into from
Closed
Changes from all 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
8 changes: 4 additions & 4 deletions frontend/encore/virtual-machine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ in the web console:
...

If your Symfony application is running on a custom domain (e.g.
``http://app.vm``), you must configure the public path explicitly in your
``http://app.vm``), you must configure the URL to the web socket server explicitly in your
``package.json``:

.. code-block:: diff
Expand All @@ -53,7 +53,7 @@ If your Symfony application is running on a custom domain (e.g.
...
"scripts": {
- "dev-server": "encore dev-server",
+ "dev-server": "encore dev-server --public http://app.vm:8080",
+ "dev-server": "encore dev-server --client-web-socket-url http://app.vm:8080",
...
}
}
Expand Down Expand Up @@ -81,8 +81,8 @@ connections:
{
...
"scripts": {
- "dev-server": "encore dev-server --public http://app.vm:8080",
+ "dev-server": "encore dev-server --public http://app.vm:8080 --host 0.0.0.0",
- "dev-server": "encore dev-server --client-web-socket-url http://app.vm:8080",
+ "dev-server": "encore dev-server --client-web-socket-url http://app.vm:8080 --host 0.0.0.0",
...
}
}
Expand Down