Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 6 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,28 +101,21 @@ if __name__ == "__main__":

Now run the server anywhere (local or cloud) via the command-line.

### Run locally

```bash
# run locally (self host anywhere)
lightning serve api server.py

# Or deploy to the cloud of your choice via Lightning AI (serverless, autoscaling, etc.)
lightning serve api server.py --cloud
```
Learn more about managed hosting on [Lightning AI](https://lightning.ai/docs/litserve/features/deploy-on-cloud).

You can also run the server directly in Python:
You can also run the server manually:

```bash
python server.py
```

### Run on the cloud

Deploy the server to Lightning AI for fully managed hosting (autoscaling, security, etc...):

```bash
lightning serve api server.py --cloud
```

Learn more about deployment options and cloud hosting [here](https://lightning.ai/docs/litserve/features/deploy-on-cloud).

### Test the server
Run the auto-generated test client:
```bash
Expand Down
Loading