Repository navigation
[3.0 doc] Guide to use developing html5 client - #24674
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review (1)
Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
WalkthroughA documentation update is added to the HTML5 development guide that instructs developers on how to configure the nginx server for local development. The instructions explain how to edit the nginx configuration file to point to a development version (bbb-html5.nginx.dev), includes a fallback path, and reminds developers to restart nginx. It also notes the importance of reverting the configuration when switching back to using the developing client. Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
docs/docs/development/dev-guide.md (1)
298-299: Preferreloadoverrestartfor nginx config changes, and put the command in a fenced code block.
sudo systemctl restart nginxtears down all active connections. All other nginx config changes in the BBB dev docs usesudo systemctl reload nginx, which is the graceful equivalent and sufficient for a config reload.- The
sudo systemctl restart nginxcommand is the only command in this document written as inline code rather than in a fenced code block, which is inconsistent with the surrounding steps.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@docs/docs/development/dev-guide.md` around lines 298 - 299, Replace the inline command `sudo systemctl restart nginx` with the graceful reload equivalent `sudo systemctl reload nginx` and present it as a fenced code block in the doc step that edits /usr/share/bigbluebutton/nginx/bbb-html5.nginx to use bbb-html5.nginx.dev (instead of bbb-html5.nginx.static); ensure the surrounding steps use the same fenced-code style so the command is consistent with other nginx config instructions.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@docs/docs/development/dev-guide.md`:
- Around line 298-299: Replace the include directive in the bbb-html5.nginx file
so the line containing "include ...bbb-html5.nginx.static;" is changed to
"include ...bbb-html5.nginx.dev;"; after editing, run a graceful nginx config
reload (use systemctl reload nginx, not restart); update the docs to show the
exact sed or replace command as a bash code block consistent with other docs;
and add an explicit revert instruction that switches "bbb-html5.nginx.dev" back
to "bbb-html5.nginx.static" and reloads nginx.
---
Nitpick comments:
In `@docs/docs/development/dev-guide.md`:
- Around line 298-299: Replace the inline command `sudo systemctl restart nginx`
with the graceful reload equivalent `sudo systemctl reload nginx` and present it
as a fenced code block in the doc step that edits
/usr/share/bigbluebutton/nginx/bbb-html5.nginx to use bbb-html5.nginx.dev
(instead of bbb-html5.nginx.static); ensure the surrounding steps use the same
fenced-code style so the command is consistent with other nginx config
instructions.
| Edit /usr/share/bigbluebutton/nginx/bbb-html5.nginx to use bbb-html5.nginx.dev, instead of bbb-html5.nginx.static. If the file path to bbb-html5.nginx.dev is missing, try /usr/share/bigbluebutton/nginx/bbb-html5.nginx.dev. Then restart nginx by `sudo systemctl restart nginx`. Remember to switch it back when you stop using the developing client. | ||
|
|
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
# First, let's explore the repository structure and locate the file
git ls-files | head -20
fd -t f 'dev-guide.md'Repository: bigbluebutton/bigbluebutton
Length of output: 905
🏁 Script executed:
# Check the specific file and lines mentioned
wc -l docs/docs/development/dev-guide.mdRepository: bigbluebutton/bigbluebutton
Length of output: 109
🏁 Script executed:
# Read the lines in question plus surrounding context
sed -n '290,310p' docs/docs/development/dev-guide.mdRepository: bigbluebutton/bigbluebutton
Length of output: 888
🏁 Script executed:
# Search for nginx config file references in the codebase
fd -t f 'bbb-html5\.nginx' --hiddenRepository: bigbluebutton/bigbluebutton
Length of output: 231
🏁 Script executed:
# Check if there are any build artifacts or config files
find . -type f -name '*bbb-html5*' 2>/dev/null | head -20Repository: bigbluebutton/bigbluebutton
Length of output: 1274
🏁 Script executed:
# Look at the document style - count code blocks vs inline commands
grep -n '```' docs/docs/development/dev-guide.md | tail -20Repository: bigbluebutton/bigbluebutton
Length of output: 256
🏁 Script executed:
# Check how other commands are formatted in the document
grep -n 'sudo systemctl' docs/docs/development/dev-guide.mdRepository: bigbluebutton/bigbluebutton
Length of output: 468
🏁 Script executed:
# Read the actual nginx configuration files to understand what needs to be changed
echo "=== bbb-html5.nginx ===" && cat build/packages-template/bbb-html5/bbb-html5.nginx
echo -e "\n=== bbb-html5.nginx.static ===" && cat build/packages-template/bbb-html5/bbb-html5.nginx.static
echo -e "\n=== bbb-html5.nginx.dev ===" && cat build/packages-template/bbb-html5/bbb-html5.nginx.devRepository: bigbluebutton/bigbluebutton
Length of output: 1531
🏁 Script executed:
# Check the line count around line 298 to see if it's actually one or two lines
sed -n '296,302p' docs/docs/development/dev-guide.md | cat -nRepository: bigbluebutton/bigbluebutton
Length of output: 513
🏁 Script executed:
# Look at the broader context of the dev guide to see other examples
sed -n '275,310p' docs/docs/development/dev-guide.md | cat -nRepository: bigbluebutton/bigbluebutton
Length of output: 1851
Clarify the nginx include directive swap and fix the self-contradictory fallback.
The paragraph has several clarity issues:
-
Missing the specific directive to change — The text says "edit...to use
bbb-html5.nginx.dev" but doesn't show which line. The actual change is swapping theincludedirective in/usr/share/bigbluebutton/nginx/bbb-html5.nginxfrominclude /usr/share/bigbluebutton/nginx/bbb-html5.nginx.static;toinclude /usr/share/bigbluebutton/nginx/bbb-html5.nginx.dev;(the commented line is already there). Developers need to see the exact line or a concrete command. -
Self-contradictory fallback — "If the file path to
bbb-html5.nginx.devis missing, try/usr/share/bigbluebutton/nginx/bbb-html5.nginx.dev" — both the condition and remedy name the same path. This is not actionable. -
Vague revert instruction — "switch it back" should explicitly state to revert to
bbb-html5.nginx.static. -
Code block formatting — Inconsistent with the rest of the document. All other commands are in
bashfenced blocks; this instruction should be too. -
restartshould bereload— For config-only changes,sudo systemctl reload nginxis the standard practice (graceful reload);restartdrops active connections unnecessarily.
Suggested rewrite
-Edit /usr/share/bigbluebutton/nginx/bbb-html5.nginx to use bbb-html5.nginx.dev, instead of bbb-html5.nginx.static. If the file path to bbb-html5.nginx.dev is missing, try /usr/share/bigbluebutton/nginx/bbb-html5.nginx.dev. Then restart nginx by `sudo systemctl restart nginx`. Remember to switch it back when you stop using the developing client.
+Switch the nginx configuration to use the development variant by uncommenting the `.dev` include:
+
+```bash
+sudo sed -i 's|include /usr/share/bigbluebutton/nginx/bbb-html5.nginx.static;|include /usr/share/bigbluebutton/nginx/bbb-html5.nginx.dev;|' \
+ /usr/share/bigbluebutton/nginx/bbb-html5.nginx
+sudo systemctl reload nginx
+```
+
+When you stop the development client, revert the change by replacing `bbb-html5.nginx.dev` with `bbb-html5.nginx.static` and reloading nginx.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@docs/docs/development/dev-guide.md` around lines 298 - 299, Replace the
include directive in the bbb-html5.nginx file so the line containing "include
...bbb-html5.nginx.static;" is changed to "include ...bbb-html5.nginx.dev;";
after editing, run a graceful nginx config reload (use systemctl reload nginx,
not restart); update the docs to show the exact sed or replace command as a bash
code block consistent with other docs; and add an explicit revert instruction
that switches "bbb-html5.nginx.dev" back to "bbb-html5.nginx.static" and reloads
nginx.
Co-authored-by: Gustavo Trott <[email protected]>
|



What does this PR do?
Add an instruction to switch the nginx configuration files for development mode.
Closes Issue(s)
Closes #
Motivation
I think this instruction was present in the v2.x docs but removed in the v3.0 docs, but still necessary if the user does not use the run-dev.sh script.
People may not have realised because the developers are now using mostly the docker.
How to test
More
It's possible that this is only specific to my development environment. If so, please close the issue.