From 3625071c3ee931621ab5b7f88e12be2ac9d33f7c Mon Sep 17 00:00:00 2001 From: Ricardo Marques Date: Wed, 21 Mar 2018 11:29:49 +0000 Subject: [PATCH] mgr/dashboard: Implicit use of proxy.conf.json Signed-off-by: Ricardo Marques --- src/pybind/mgr/dashboard/HACKING.rst | 2 +- src/pybind/mgr/dashboard/frontend/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pybind/mgr/dashboard/HACKING.rst b/src/pybind/mgr/dashboard/HACKING.rst index 2a33e022837..807360e4157 100644 --- a/src/pybind/mgr/dashboard/HACKING.rst +++ b/src/pybind/mgr/dashboard/HACKING.rst @@ -45,7 +45,7 @@ Setting up a Development Server Create the ``proxy.conf.json`` file based on ``proxy.conf.json.sample``. -Run ``npm start -- --proxy-config proxy.conf.json`` for a dev server. +Run ``npm start`` for a dev server. Navigate to ``http://localhost:4200/``. The app will automatically reload if you change any of the source files. diff --git a/src/pybind/mgr/dashboard/frontend/package.json b/src/pybind/mgr/dashboard/frontend/package.json index 653bce9b744..6ca56e1b12e 100644 --- a/src/pybind/mgr/dashboard/frontend/package.json +++ b/src/pybind/mgr/dashboard/frontend/package.json @@ -4,7 +4,7 @@ "license": "MIT", "scripts": { "ng": "ng", - "start": "ng serve --delete-output-path false", + "start": "ng serve --delete-output-path false --proxy-config proxy.conf.json", "build": "ng build", "test": "ng test", "lint": "ng lint", -- 2.39.5