Skip to content

Commit ea14d27

Browse files
authored
Change default port to 8900 (#429)
Port 7000 is occupied by default on macOS. This also makes it simpler how to customize it (use env var instead of hardcoded in the package.json) Fix #325
1 parent 3150f41 commit ea14d27

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

Development.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ In your working directory, open terminal and paste the following commands:
2525

2626
1. In your terminal run:
2727
```sh
28-
npm run dev
28+
PORT=8900 npm run dev # Passing the env var PORT is optional
2929
```
30-
2. Open your browser of choice and navigate to [http://127.0.0.1:7000](http://127.0.0.1:7000)
30+
2. Open your browser of choice and navigate to [http://127.0.0.1:8900](http://127.0.0.1:8900)
3131

3232
## Local Server
3333

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
},
1616
"license": "SEE LICENSE IN LICENSE",
1717
"scripts": {
18-
"dev": "http-server ./ -p 7000 -c-1 --cors",
19-
"server": "http-server ./ -p 7000 --cors",
18+
"dev": "http-server ./ -c-1 --cors",
19+
"server": "http-server ./ --cors",
2020
"lint:check": "eslint **/*.{js,mjs,jsx,ts,tsx}",
2121
"lint:fix": "eslint \"**/*.{js,mjs,jsx,ts,tsx}\" --fix",
2222
"pretty:check": "prettier --check ./",

resources/charts/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ convenient to open these benchmarks with their specific files.
4141

4242
You can load this benchmark with the `/observable-plot.html` page, for example
4343
http://localhost:5173/observable-plot.html if you run it locally or
44-
http://localhost:7000/resources/charts/dist/observable-plot.html in the
44+
http://localhost:8900/resources/charts/dist/observable-plot.html in the
4545
context of the speedometer.
4646

4747
Observable Plot is D3-based and outputs SVG.
@@ -63,7 +63,7 @@ US. You can consult them in the [datasets directory](./datasets).
6363

6464
You can load this benchmark with the `/chartjs.html` page, for example
6565
http://localhost:5173/chartjs.html if you run it locally or
66-
http://localhost:7000/resources/charts/dist/chartjs.html in the
66+
http://localhost:8900/resources/charts/dist/chartjs.html in the
6767
context of speedometer.
6868

6969
ChartJS is canvas-based.

resources/editors/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ The test simulates a real-world user flow by loading a number of popular editor
2424

2525
The app was created with `npm create vite@latest editors`, and can be previewed with `npm run dev`. In order to update the files run in the harness you have to use `npm run build` which will recreate the `dist/` directory.
2626

27-
The built test can be loaded within the harness using i.e. http://localhost:7000/?suite=Editor-CodeMirror&startAutomatically=true, or the static versions at http://localhost:7000/resources/editors/dist/.
27+
The built test can be loaded within the harness using i.e. http://localhost:8900/?suite=Editor-CodeMirror&startAutomatically=true, or the static versions at http://localhost:7000/resources/editors/dist/.

0 commit comments

Comments
 (0)