mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 16:59:06 +02:00
Publish changes to start args to npm
This commit is contained in:
parent
5058e765c3
commit
70ed75b046
3 changed files with 20 additions and 5 deletions
|
@ -140,8 +140,10 @@ yarn run start
|
|||
```
|
||||
|
||||
|
||||
This will start a server hosting your website locally at `localhost:3000`. This server will ignore any occurences `siteConfig.baseUrl` in URLs, e.g. `localhost:3000/your-site/index.html` will be the same as `localhost:3000/index.html`. Any changes to configured files will be reflected by refreshing the page, i.e. the server does not need to be restarted to show changes. You may also specify a different port to start your server on as a command line argument, e.g. `npm run start 9000`.
|
||||
|
||||
This will start a server hosting your website locally at `localhost:3000`. This server will ignore any occurences `siteConfig.baseUrl` in URLs, e.g. `localhost:3000/your-site/index.html` will be the same as `localhost:3000/index.html`. Any changes to configured files will be reflected by refreshing the page, i.e. the server does not need to be restarted to show changes. You may also specify a different port to start your server on by using a `--port` flag:
|
||||
```
|
||||
npm run start -- --port 9000
|
||||
```
|
||||
|
||||
### Build Static Pages
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue