Mercurial > gemma
changeset 1852:72d6fcb2147d
client: add dev-server tunnel hint
* Remove unused headline.
* Add example how to run the dev server via a tunnel.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Thu, 17 Jan 2019 11:02:03 +0100 |
parents | d70bd8860b65 |
children | cedadd4e3db5 |
files | client/README.md |
diffstat | 1 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/client/README.md Thu Jan 17 10:12:56 2019 +0100 +++ b/client/README.md Thu Jan 17 11:02:03 2019 +0100 @@ -1,6 +1,3 @@ -N.N -=== - * Install dependencies * Install (`xgettext`) tool (e.g. for Debian xgettext (GNU gettext-tools) 0.19.8.1) @@ -23,6 +20,15 @@ Run webpack-dev-server with `yarn serve` +Hint: if you want to access the dev-server via a tunnel with hot reload, + you'll may need to explicitely set the url the browser has to call + with public. Example: + +```sh +ssh bern@ourdev.intevation.de -L 8180:localhost:8180 +yarn serve --port 8180 --public http://localhost:8180 +``` + * Build `yarn build` builds the production ready assets to `web` folder.