Discover how to make static files work and get Nginx working.
- [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. …
- Transferring code to a server
- Managing media files
- Creating a custom URL
- Configuring file settings
- Securing a server
- Database setup
- PostgreSQL setup
- Gunicorn testing
- NGINX setup
- Storage setup
Skill Level Intermediate
What you should know1m 44s
1. Digital Ocean
Next steps1m 7s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.