You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: installpythonfastapi.md
+16-1
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,22 @@ cd /pythonfastapi
65
65
uvicorn main:app --reload --port 3434
66
66
```
67
67
68
-
This will start your app on port 3434
68
+
This will start your app on port 3434. The results should look like the following. And the web app server will restart any time a page change is made.
69
+
70
+
```
71
+
INFO: Will watch for changes in these directories: ['/home/RICHARD/richard/pythonfastapi']
72
+
INFO: Uvicorn running on http://0.0.0.0:3434 (Press CTRL+C to quit)
73
+
INFO: Started reloader process [2530954] using watchgod
74
+
INFO: Started server process [2530956]
75
+
INFO: Waiting for application startup.
76
+
INFO: Application startup complete.
77
+
```
78
+
79
+
## Exposing App to the Web
80
+
If you plan to expose your web app to the Internet, it's probably a good idea to set up an NGINX web server as a web front end that also uses SSL for secure communications. NGINX can proxy/pass all web traffic to youe Uvicorn server.
81
+
82
+
Note: It's possible Uvicorn can be exposed without using NGINX, but I would recommend exploring this more on the Uvicorn web site and doing appropriate research before you expose your app server to the web.
0 commit comments