Skip to content

Commit

Permalink
docs: Make deployment docs more clear.
Browse files Browse the repository at this point in the history
  • Loading branch information
mturoci committed Oct 9, 2023
1 parent 7c34dd6 commit e69439d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions website/docs/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ title: Deployment

At the end of the day, Wave produces web-apps with their own web server. This means any VM provider can be used for Wave deployment.

It's highly recommended to run Wave server (waved) [separately](/docs/tutorial-hello/#step-1-start-the-wave-server) from Wave app for production deployment.

More info about various configuration options can be found in the [configuration section](/docs/configuration).

## Deploying Wave scripts

Wave scripts are regular Python scripts. Deploy them as you would any Python script.
Expand Down Expand Up @@ -38,6 +34,14 @@ To configure a different port, see [configuring ports](/docs/configuration/#how-
`uvicorn` accepts `--env-file` flag to specify `.env` configuration file for the Wave app. Note that as of time of writing, `--env-file` does not support configuration of Uvicorn itself. Using this flag may require running `pip install python-dotenv` first.
:::

### Wave server

Wave uses 2 separate servers under the hood - waved (Go server) and wave app (Python server). See [architecture](/docs/architecture/) to learn more.

It's highly recommended to run Wave server (waved) [separately](/docs/tutorial-hello/#step-1-start-the-wave-server) from Wave app for production deployment.

More info about various configuration options can be found in the [configuration section](/docs/configuration).

### Beyond defaults

If different than default ports are used for Wave server (<http://localhost:10101>) or Wave app (<http://localhost:8000>), it's necessary to properly set env variables:
Expand Down

0 comments on commit e69439d

Please sign in to comment.