This is an automated email from the ASF dual-hosted git repository.

erose pushed a commit to branch HDDS-9225-website-v2
in repository https://gitbox.apache.org/repos/asf/ozone-site.git


The following commit(s) were added to refs/heads/HDDS-9225-website-v2 by this 
push:
     new 6f0f4a03 HDDS-11344. Change dev server port to avoid conflict with 
Grafana. (#98)
6f0f4a03 is described below

commit 6f0f4a037d4dbb5ee8fcd2bd9558c4ffd2fbf32a
Author: Ethan Rose <[email protected]>
AuthorDate: Tue Aug 20 16:54:44 2024 -0400

    HDDS-11344. Change dev server port to avoid conflict with Grafana. (#98)
---
 .github/scripts/curl.sh |  2 +-
 CONTRIBUTING.md         | 10 +++++-----
 compose.yml             |  2 +-
 docusaurus.config.js    |  2 +-
 package.json            |  4 ++--
 5 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/.github/scripts/curl.sh b/.github/scripts/curl.sh
index 8c27ccce..36a4ca7a 100755
--- a/.github/scripts/curl.sh
+++ b/.github/scripts/curl.sh
@@ -19,7 +19,7 @@
 
 echo 'Running website and checking homepage...'
 docker compose run --detach --service-ports site pnpm serve
-while [ "$(curl -so /dev/null -w '%{http_code}' http://localhost:3000)" != 200 
]; do
+while [ "$(curl -so /dev/null -w '%{http_code}' http://localhost:3001)" != 200 
]; do
   sleep 1;
 done
 echo 'Website homepage is responsive.'
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index bfbd8f02..eedbbb81 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -14,7 +14,7 @@ This document summarizes the contribution process.
 2. Use your favorite editor to write markdown content under the [docs/](docs/) 
and [src/pages/](src/pages/) directories.
     - A good option is [Visual Studio Code](https://code.visualstudio.com/) 
with 
[markdownlint](https://marketplace.visualstudio.com/items?itemName=DavidAnson.vscode-markdownlint)
 and 
[cspell](https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker)
 plugins, which will automatically detect the website's configuration files and 
give feedback as you type.
 
-3. Preview your changes locally by running `docker compose up` and opening 
`localhost:3000` in your browser.
+3. Preview your changes locally by running `docker compose up` and opening 
`localhost:3001` in your browser.
     - Make sure [Docker](https://docs.docker.com/engine/install/) and [Docker 
Compose](https://docs.docker.com/compose/install/) are installed on your system.
     - If you need to update the dependencies in your Docker image at any time, 
run `docker compose up --build` to create an updated image.
 
@@ -280,7 +280,7 @@ Currently all `@docusaurus/*` packages are pinned to an 
exact version for websit
 
 ### Previewing Your Modifications Locally
 
-Docusaurus supports previewing the website locally. Below are various options 
to launch a preview of the site at `localhost:3000` on your machine.
+Docusaurus supports previewing the website locally. Below are various options 
to launch a preview of the site at `localhost:3001` on your machine.
 
 **NOTE**: If using the [Docusaurus development 
server](https://docusaurus.io/docs/installation#running-the-development-server),
 changes to `docusaurus.config.js` may not be automatically reloaded and 
require the server to be restarted.
 
@@ -297,7 +297,7 @@ The project includes a `Dockerfile` and a `compose.yml` 
file to build and run th
     - **Note**: This will continue to use the last locally built version of 
the `ozone-site-dev` image, which saves time on future runs.
       - Run `docker compose up --build` to rebuild the image and incorporate 
any package dependency updates that may have been committed since the last 
build.
 
-4. Preview the website at `localhost:3000` in your browser.
+4. Preview the website at `localhost:3001` in your browser.
 
     - Any changes made in the repository will be reflected in the preview.
 
@@ -315,7 +315,7 @@ Build and run the website locally with the `pnpm` package 
manager.
 
   1. Run `pnpm start` from the repository root to start the development server.
 
-  2. Preview the website at `localhost:3000` in your browser.
+  2. Preview the website at `localhost:3001` in your browser.
 
   3. Press `Ctrl+C` to stop the preview.
 
@@ -325,7 +325,7 @@ Build and run the website locally with the `pnpm` package 
manager.
 
   2. Run `pnpm serve` to preview the built website locally.
 
-  3. Preview the website at `localhost:3000` in your browser.
+  3. Preview the website at `localhost:3001` in your browser.
 
   4. Press `Ctrl+C` to stop the preview.
 
diff --git a/compose.yml b/compose.yml
index b039dfa8..1a6c8465 100644
--- a/compose.yml
+++ b/compose.yml
@@ -20,7 +20,7 @@ services:
     build: .
     image: ozone-site
     ports:
-    - 3000:3000
+    - 3001:3001
     volumes:
     - .:/ozone-site
     # The below option is used to prevent overwriting the node_modules 
directory in the docker image
diff --git a/docusaurus.config.js b/docusaurus.config.js
index 0984453a..1748ac7f 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -33,7 +33,7 @@ const config = {
 
   // Set the production URL of the website. Must be updated when the final 
site is deployed.
   // This must match the URL the website is hosted at for social media 
previews to work.
-  // If you are testing the social media image (themeConfig.image) locally, 
set this to http://localhost:3000.
+  // If you are testing the social media image (themeConfig.image) locally, 
set this to http://localhost:3001.
   url: 'https://ozone-site-v2.staged.apache.org',
   // Set the /<baseUrl>/ pathname under which your site is served
   // For GitHub pages deployment, it is often '/<projectName>/'
diff --git a/package.json b/package.json
index aba3e697..18ef98e6 100644
--- a/package.json
+++ b/package.json
@@ -5,12 +5,12 @@
   "private": true,
   "scripts": {
     "docusaurus": "docusaurus",
-    "start": "docusaurus start",
+    "start": "docusaurus start --port 3001",
     "build": "docusaurus build",
     "swizzle": "docusaurus swizzle",
     "deploy": "docusaurus deploy",
     "clear": "docusaurus clear",
-    "serve": "docusaurus serve",
+    "serve": "docusaurus serve --port 3001",
     "write-translations": "docusaurus write-translations",
     "write-heading-ids": "docusaurus write-heading-ids"
   },


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to