Skip to content

fix(docs): Update development setup documentation for port changes#39705

Open
Ilphrin wants to merge 1 commit into
apache:masterfrom
Ilphrin:patch-1
Open

fix(docs): Update development setup documentation for port changes#39705
Ilphrin wants to merge 1 commit into
apache:masterfrom
Ilphrin:patch-1

Conversation

@Ilphrin
Copy link
Copy Markdown

@Ilphrin Ilphrin commented Apr 27, 2026

SUMMARY

Hi, first of all thank you for your awesome project!

It seems that the actual basic docker setup defaults to port 8088 first, and only tries 9000 afterward if not available, so I updated the setup docs accordingly. Please let me know if this is incorrect

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

The actual basic docker setup defaults to port 8088 first, and only tries 9000 afterward if not available.
@bito-code-review
Copy link
Copy Markdown
Contributor

bito-code-review Bot commented Apr 27, 2026

Bito Automatic Review Skipped - Files Excluded

Bito didn't auto-review this change because all changed files are in the exclusion list for automatic reviews. No action is needed if you didn't intend for the agent to review it. Otherwise, to manually trigger a review, type /review in a comment and save.
You can change the excluded files settings here, or contact your Bito workspace admin at evan@preset.io.

@github-actions github-actions Bot added the doc Namespace | Anything related to documentation label Apr 27, 2026
@dosubot dosubot Bot added the doc:developer Developer documentation label Apr 27, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 27, 2026

Deploy Preview for superset-docs-preview ready!

Name Link
🔨 Latest commit 5df00a9
🔍 Latest deploy log https://app.netlify.com/projects/superset-docs-preview/deploys/69efc3712258ab0008eb8968
😎 Deploy Preview https://deploy-preview-39705--superset-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment on lines 580 to 603
@@ -588,18 +588,18 @@ So a typical development workflow is the following:
superset run -p 8088 --with-threads --reload --debugger --debug
```

2. in parallel, run the Webpack dev server locally on port `9000`,<br/>
2. in parallel, run the Webpack dev server locally on port `8088`,<br/>

```bash
npm run dev-server
```

3. access `http://localhost:9000` (the Webpack server, _not_ Flask) in your web browser. This will use the hot-reloading front-end assets from the Webpack development server while redirecting back-end queries to Flask/Superset: your changes on Superset codebase — either front or back-end — will then be reflected live in the browser.
3. access `http://localhost:8088` (the Webpack server, _not_ Flask) in your web browser. This will use the hot-reloading front-end assets from the Webpack development server while redirecting back-end queries to Flask/Superset: your changes on Superset codebase — either front or back-end — will then be reflected live in the browser.

It's possible to change the Webpack server settings:

```bash
# Start the dev server at http://localhost:9000
# Start the dev server at http://localhost:8088
npm run dev-server
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟠 Architect Review — HIGH

The Webpack dev server docs now state that the dev server "by default starts at http://localhost:8088", and steps 2–3 describe running it "on port 8088" and accessing http://localhost:8088, but the actual webpack config still defaults the dev server to port 9000 and proxies to a backend on 8088. This makes the documented default port and access URL incorrect and breaks the described hot-reload workflow for someone following these instructions literally.

Suggestion: Update this section to reflect the actual behavior (Webpack dev server on 9000 proxying to Flask on 8088, with users visiting http://localhost:9000), or if 8088 is the intended new default, change the dev-server defaults in webpack.config.js and related scripts to 8088 and then document that behavior consistently.

Fix in Cursor | Fix in VSCode Claude

(Use Cmd/Ctrl + Click for best experience)

Prompt for AI Agent 🤖
This is an **Architect / Logical Review** comment left during a code review. These reviews are first-class, important findings — not optional suggestions. Do NOT dismiss this as a 'big architectural change' just because the title says architect review; most of these can be resolved with a small, localized fix once the intent is understood.

**Path:** docs/developer_docs/contributing/development-setup.md
**Line:** 580:603
**Comment:**
	*HIGH: The Webpack dev server docs now state that the dev server "by default starts at http://localhost:8088", and steps 2–3 describe running it "on port 8088" and accessing http://localhost:8088, but the actual webpack config still defaults the dev server to port 9000 and proxies to a backend on 8088. This makes the documented default port and access URL incorrect and breaks the described hot-reload workflow for someone following these instructions literally.

Validate the correctness of the flagged issue. If correct, How can I resolve this? If you propose a fix, implement it and please make it concise.
If a suggested approach is provided above, use it as the authoritative instruction. If no explicit code suggestion is given, you MUST still draft and apply your own minimal, localized fix — do not punt back with 'no suggestion provided, review manually'. Keep the change as small as possible: add a guard clause, gate on a loading state, reorder an await, wrap in a conditional, etc. Do not refactor surrounding code or expand scope beyond the finding.
Once fix is implemented, also check other comments on the same PR, and ask user if the user wants to fix the rest of the comments as well. if said yes, then fetch all the comments validate the correctness and implement a minimal fix

@bito-code-review
Copy link
Copy Markdown
Contributor

The flagged issue is correct—the documentation now states the Webpack dev server starts at http://localhost:8088, but the actual webpack.config.js still defaults to port 9000 and proxies to the backend on 8088. To resolve, update the docs to reflect the actual behavior: dev server on 9000, users visit http://localhost:9000.

docs/developer_docs/contributing/development-setup.md

Webpack dev server

The dev server by default starts at http://localhost:9000 and proxies the backend requests to http://localhost:8088.

So a typical development workflow is the following:

  1. start the Superset backend on port 8088,

    superset run -p 8088 --with-threads --reload --debugger --debug
  2. in parallel, run the Webpack dev server locally on port 9000,

    npm run dev-server
  3. access http://localhost:9000 (the Webpack server, not Flask) in your web browser. This will use the hot-reloading front-end assets from the Webpack development server while redirecting back-end queries to Flask/Superset: your changes on Superset codebase — either front or back-end — will then be reflected live in the browser.

It's possible to change the Webpack server settings:

# Start the dev server at http://localhost:9000
npm run dev-server

# Run the dev server on a non-default port

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates port references in the development setup documentation from 9000 to 8088 to reflect the current Docker default port.

Changes:

  • Updates Docker Compose access URL from port 9000 to 8088
  • Updates frontend npm run dev documentation to reference port 8088
  • Updates Webpack dev server documentation to reference port 8088

#### Webpack dev server

The dev server by default starts at `http://localhost:9000` and proxies the backend requests to `http://localhost:8088`.
The dev server by default starts at `http://localhost:8088` and proxies the backend requests to `http://localhost:8088`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc:developer Developer documentation doc Namespace | Anything related to documentation size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants