Skip to content

Commit cf09b65

Browse files
Update installpythonfastapi.md
1 parent 74047ca commit cf09b65

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

installpythonfastapi.md

+16-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,22 @@ cd /pythonfastapi
6565
uvicorn main:app --reload --port 3434
6666
```
6767

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.
83+
6984

7085
## Trying out your sample app from a web browser
7186

0 commit comments

Comments
 (0)