From d5860737056811fa1a73f8fc7edce90fe7045b09 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Thu, 19 Apr 2018 10:10:32 +0100 Subject: [PATCH] use default port 4200 for development (#322) --- .angular-cli.json | 2 +- README.md | 2 +- docs/configuration.md | 8 ++++---- docs/docker.md | 4 ++-- protractor.conf.js | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.angular-cli.json b/.angular-cli.json index 5d1be9720..0e3fb2b06 100644 --- a/.angular-cli.json +++ b/.angular-cli.json @@ -89,7 +89,7 @@ "component": {}, "serve": { "proxyConfig": "proxy.conf.js", - "port": 3000, + "port": 4200, "host": "0.0.0.0" } } diff --git a/README.md b/README.md index bbb4a100b..fa4065e22 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ and then check out one of our issues in the [Jira][jira] or [GitHub][github] ## Development server -Run `npm start` for a dev server. Navigate to `http://localhost:3000/` (opens by default). +Run `npm start` for a dev server. Navigate to `http://localhost:4200/` (opens by default). The app will automatically reload if you change any of the source files. ## Build diff --git a/docs/configuration.md b/docs/configuration.md index 030888735..258ddb488 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -21,11 +21,11 @@ The example below demonstrates the most common dynamic format for development en The configuration above assumes you are running ACS and Content App on the same server and port and allows deploying to different servers having the same unified configuration file. -For example, a proxy server at `localhost:3000` hosting the Content App as the root application, -and `localhost:3000/alfresco` for the ACS repository. +For example, a proxy server at `localhost:4200` hosting the Content App as the root application, +and `localhost:4200/alfresco` for the ACS repository. At runtime, the application is going to automatically substitute the "{hostname}" value with the original hostname. -Optionally it can also use the value of the original port if present, for example, "3000" at local machines, or skip the value for port 80. +Optionally it can also use the value of the original port if present, for example, "4200" at local machines, or skip the value for port 80. ### Static address @@ -33,7 +33,7 @@ Alternatively, you can provide a static address for the ACS server if necessary: ```json { - "ecmHost": "http://localhost:3000", + "ecmHost": "http://localhost:4200", ... } ``` diff --git a/docs/docker.md b/docs/docker.md index e4961a3f4..86d5ce13d 100644 --- a/docs/docker.md +++ b/docs/docker.md @@ -77,7 +77,7 @@ To perform a cleanup operation, use the next command: docker-compose down --rmi all ``` -Navigate to "http://localhost:3000" to access the running application. +Navigate to "http://localhost:4200" to access the running application.

Please keep in mind that you should manually build the project every time you want to publish the image or run it locally with the container. @@ -101,7 +101,7 @@ npm run build:dev docker-compose up ``` -Navigate to "http://localhost:3000" to access the running application. +Navigate to "http://localhost:4200" to access the running application. To perform a cleanup operation, use the next command: diff --git a/protractor.conf.js b/protractor.conf.js index bc0ae870c..9a1a1b39c 100644 --- a/protractor.conf.js +++ b/protractor.conf.js @@ -28,7 +28,7 @@ exports.config = { directConnect: true, - baseUrl: 'http://localhost:3000', + baseUrl: 'http://localhost:4200', framework: 'jasmine2', jasmineNodeOpts: {