@@ -10,14 +10,20 @@ title: SORT architecture
10
10
---
11
11
flowchart LR
12
12
Browser -- "HTTPS port 443" --> nginx
13
- subgraph UoS
14
- nginx -- "Unix socket" --> Gunicorn
15
- Gunicorn -- "WSGI" --> Django
16
- Django --> PostgreSQL
13
+ subgraph University of Sheffield network
14
+ subgraph sort-web-app machine
15
+ nginx -- "Unix socket" --> Gunicorn
16
+ Gunicorn -- "WSGI" --> Django
17
+ Django --> PostgreSQL
18
+ end
17
19
end
18
20
```
19
21
22
+ When accessing the web site, the following process happens:
20
23
24
+ 1 . A user uses their web browser to access the server using the HTTPS port 443;
25
+ 2 . The request is sent to the web server and is handled by Nginx;
26
+ 3 .
21
27
22
28
You may also refer to the following guides:
23
29
@@ -55,17 +61,17 @@ sudo systemctl status nginx
55
61
56
62
# View logs
57
63
58
- [ nginx logs] ( https://docs.nginx.com/nginx/admin-guide/monitoring/logging/ )
64
+ View [ nginx logs] ( https://docs.nginx.com/nginx/admin-guide/monitoring/logging/ )
59
65
60
66
``` bash
61
- sudo tail /var/log/nginx/error .log
62
- sudo tail /var/log/nginx/access .log
67
+ sudo tail --follow /var/log/nginx/access .log
68
+ sudo tail --follow /var/log/nginx/error .log
63
69
```
64
70
65
- [ Gunicorn logs] ( https://docs.gunicorn.org/en/stable/settings.html#logging )
71
+ View [ Gunicorn logs] ( https://docs.gunicorn.org/en/stable/settings.html#logging )
66
72
67
73
``` bash
68
- sudo journalctl -u gunicorn.service
74
+ sudo journalctl -u gunicorn.service --follow
69
75
```
70
76
71
77
# Control
0 commit comments