Skip to content

Commit 12e3d1e

Browse files
Update README.md (#459)
1 parent 9c9d31b commit 12e3d1e

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

README.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -101,28 +101,21 @@ if __name__ == "__main__":
101101

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

104-
### Run locally
105-
106104
```bash
105+
# run locally (self host anywhere)
107106
lightning serve api server.py
107+
108+
# Or deploy to the cloud of your choice via Lightning AI (serverless, autoscaling, etc.)
109+
lightning serve api server.py --cloud
108110
```
111+
Learn more about managed hosting on [Lightning AI](https://lightning.ai/docs/litserve/features/deploy-on-cloud).
109112

110-
You can also run the server directly in Python:
113+
You can also run the server manually:
111114

112115
```bash
113116
python server.py
114117
```
115118

116-
### Run on the cloud
117-
118-
Deploy the server to Lightning AI for fully managed hosting (autoscaling, security, etc...):
119-
120-
```bash
121-
lightning serve api server.py --cloud
122-
```
123-
124-
Learn more about deployment options and cloud hosting [here](https://lightning.ai/docs/litserve/features/deploy-on-cloud).
125-
126119
### Test the server
127120
Run the auto-generated test client:
128121
```bash

0 commit comments

Comments
 (0)