File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed
Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -101,28 +101,21 @@ if __name__ == "__main__":
101101
102102Now run the server anywhere (local or cloud) via the command-line.
103103
104- ### Run locally
105-
106104``` bash
105+ # run locally (self host anywhere)
107106lightning 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
113116python 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
127120Run the auto-generated test client:
128121``` bash
You can’t perform that action at this time.
0 commit comments