mirror of
https://github.com/etesync/server
synced 2024-11-22 08:48:07 +00:00
Test nginx config before restarting it
parent
2b3f32f932
commit
6b248e63f4
@ -83,6 +83,7 @@ After restarting Nginx and launching Daphne (on port 8001), you should be able t
|
|||||||
```
|
```
|
||||||
$ sudo cp etebase_nginx.conf /etc/nginx/sites-available/
|
$ sudo cp etebase_nginx.conf /etc/nginx/sites-available/
|
||||||
$ sudo ln -s /etc/nginx/sites-available/etebase_nginx.conf /etc/nginx/sites-enabled/etebase_nginx.conf
|
$ sudo ln -s /etc/nginx/sites-available/etebase_nginx.conf /etc/nginx/sites-enabled/etebase_nginx.conf
|
||||||
|
$ nginx -t
|
||||||
$ systemctl restart nginx
|
$ systemctl restart nginx
|
||||||
$ uvicorn etebase_server.asgi:application --port 8001 --host 0.0.0.0
|
$ uvicorn etebase_server.asgi:application --port 8001 --host 0.0.0.0
|
||||||
```
|
```
|
||||||
@ -112,6 +113,7 @@ Now, we change the way we run Daphne to use the same file socket.
|
|||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
$ nginx -t
|
||||||
$ systemctl restart nginx
|
$ systemctl restart nginx
|
||||||
$ uvicorn etebase_server.asgi:application --uds /tmp/etebase_server.sock
|
$ uvicorn etebase_server.asgi:application --uds /tmp/etebase_server.sock
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user