Skip to content

Commit

Permalink
Change default port to 3001
Browse files Browse the repository at this point in the history
  • Loading branch information
errose28 committed Aug 20, 2024
1 parent ede509d commit e62c115
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/scripts/curl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
10 changes: 5 additions & 5 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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.

Expand All @@ -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.

Expand All @@ -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.

Expand All @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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>/'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"private": true,
"scripts": {
"docusaurus": "docusaurus",
"start": "docusaurus start",
"start": "docusaurus start --port 3001",
"build": "docusaurus build",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
Expand Down

0 comments on commit e62c115

Please sign in to comment.