From the course: Deploying Django Apps: Make Your Site Go Live
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
NGINX setup
From the course: Deploying Django Apps: Make Your Site Go Live
NGINX setup
- [Nick Walter] The next step in our project deployment, is to utilize something called, NGINX. Now NGINX is a web server that's going to handle all of our web traffic, and pass it to the appropriate places. So simply put it's going to pass some of the requests, over to Gunicorn, to process back some files but, anytime the users looking for some sort of media, it's going to pass it either to our static folder, or our media folder. So now that we're running in production environment, we need to edit our settings, so that it reflects that. So we're going to go ahead and type out, nano, portfolio dash settings, edit the settings file, and we're just going to scroll down and change our debug, from true, to false. So make sure you got the capital false there, do control X, Y, hit enter on that. Now that we've done that we can go ahead and properly set up NGINX. So what we need to do is move back over to our guide, and we'll scroll down here, and we need to copy this line of code. So we…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Digital Ocean account2m 1s
-
(Locked)
Creating a droplet4m 11s
-
(Locked)
Securing your server4m 50s
-
(Locked)
Postgres setup7m 46s
-
Transferring code to the server5m 40s
-
(Locked)
Configuring settings files3m 56s
-
(Locked)
Testing deployment5m 3s
-
Gunicorn testing6m 46s
-
(Locked)
NGINX setup5m 24s
-
(Locked)
Connecting your URL4m 3s
-
-
-
-
-