From 50391182ed8b3a022d3bbdd8b6452fe19dbf0007 Mon Sep 17 00:00:00 2001
From: Philipp Scheit
Date: Mon, 26 Feb 2018 11:49:43 +0100
Subject: [PATCH] Configuration for versioning, when rebinding the host from
dev-server to all interfaces
---
frontend/encore/dev-server.rst | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/frontend/encore/dev-server.rst b/frontend/encore/dev-server.rst
index 30da40c586c..3c07920249b 100644
--- a/frontend/encore/dev-server.rst
+++ b/frontend/encore/dev-server.rst
@@ -32,10 +32,19 @@ to bind to all IP addresses and allow any host to access the server:
.. code-block:: terminal
- $ ./node_modules/.bin/encore dev-server --host 0.0.0.0 --disable-host-check
+ $ ./node_modules/.bin/encore dev-server --public http://docker-host:9000 --port 9000 --host 0.0.0.0 --disable-host-check
You can now access the dev-server using the IP address to your virtual machine on
-port 8080 - e.g. http://192.168.1.1:8080.
+port 9000 - e.g. http://192.168.1.1:9000.
+If you've activated the :ref:`manifest.json versioning ` you need additional configuration to alter the url used in your templates to the ``dev-server``:
+
+.. code-block:: javascript
+
+ Encore
+ .setManifestKeyPrefix('build/')
+
+When you're using the ``dev-server`` in a docker container, configure accordingly and bind the port from the ``dev-server`` (default 8080) onto a port on the host and provide this port --public parameter above.
+
Hot Module Replacement HMR
--------------------------