From 6b248e63f48b160a88efec2775d3e31e780313da Mon Sep 17 00:00:00 2001 From: Tyler Flowers Date: Mon, 6 Jun 2022 05:15:18 -0700 Subject: [PATCH] Test nginx config before restarting it --- Production-setup-using-Nginx.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Production-setup-using-Nginx.md b/Production-setup-using-Nginx.md index eb0dc01..0c36267 100644 --- a/Production-setup-using-Nginx.md +++ b/Production-setup-using-Nginx.md @@ -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 ln -s /etc/nginx/sites-available/etebase_nginx.conf /etc/nginx/sites-enabled/etebase_nginx.conf +$ nginx -t $ systemctl restart nginx $ 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 $ uvicorn etebase_server.asgi:application --uds /tmp/etebase_server.sock ```