mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-02 02:42:41 +02:00
feat: allow different host through CLI flag (#1475)
* feat(core): use 0.0.0.0 for livereload address * test(core): update server tests * feat(cli): add host by command line flag * test: revert test changes * fix(core): update server to use custom host if supplied * refactor: nits
This commit is contained in:
parent
382b88bb49
commit
0568ad4992
6 changed files with 13 additions and 8 deletions
|
@ -42,6 +42,7 @@ if (env.versioning.enabled && env.versioning.missingVersionsPage) {
|
|||
program
|
||||
.option('--port <number>', 'Specify port number')
|
||||
.option('--no-watch', 'Toggle live reload file watching')
|
||||
.option('--host <host>', 'use specified host (default: localhost)')
|
||||
.parse(process.argv);
|
||||
|
||||
startDocusaurus().catch(ex => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue