Skip to content

Commit

Permalink
add info about custom port in docs and readme (mljar#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
pplonski committed Jun 1, 2022
1 parent 194be8f commit 5820442
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,12 @@ mercury run

It will serve Mercury website at [http://127.0.0.1:8000](http://127.0.0.1:8000) with all notebooks.

You can change the default `8000` PORT when running the `mercury`:

```
mercury run 127.0.0.1:<your-port-here>
```

### Manually add notebooks (second option)

To run Mercury locally just run:
Expand Down
8 changes: 7 additions & 1 deletion docs/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,17 @@ To run app locally please use the command:
mercury run greetings.ipynb
```

Please open the web browser with address `http://127.0.0.1`.
Please open the web browser with address `http://127.0.0.1:8000`.

<img
style="border: 1px solid #e1e4e5"
alt="Run app locally"
src="../media/app_running_locally.png" width="100%" />

If you would like to run a `mercury` locally on different port please specify it in the `run` command:

```
mercury run greetings.ipynb 127.0.0.1:<your-port>
```

There are many ways in which the app can be deployed to the cloud. Please check the [Deployment](/deploy/deployment) section.

0 comments on commit 5820442

Please sign in to comment.