Hello Linux
Deploy a Python web application on Ubuntu 18.04 LTS. We'll be using Django as our example but that's just a small part of making this happen. Here's what we're going to do:
- Launch a Ubuntu virtual machine (droplet) with Digital Ocean (includes a $100 credit)
- Access our droplet via SSH
- Install Updates & Dependancies
- Configure & Implement:
- Git (for push, build, & deploy) [docs]
- Supervisor (process manager) [docs]
- Nginx (web server / load balancer) [docs]
- Redis (task queue datastore / message broker) [docs]
- Celery (worker / task queues) [docs]
- Gunicorn (WSGI web server for python) [docs]
- PostgreSQL (database) [docs]
- Django (Python web framework) [docs]
- Let's Encrypt for HTTPs Certificates
Lessons
1
Welcome
2:10
2
Why You Should Take This Series
7:35
3
Setup Ubuntu Server & SSH Keys on Digital Ocean
6:11
4
Handling Multiple SSH Keys
4:04
5
Git Push Local to Live
12:28
6
Git Clone Bare
5:15
7
Fresh Server to Git to Code Deploys
13:03
8
Local Virtual Environment
6:15
9
Production Virtual Environment
9:27
10
Prepare for Production Database
10:07
11
Migrate for PostgreSQL and Django
5:04
12
Gunicorn
5:36
13
Supervisor and Gunicorn
8:20
14
Updating Supervisor
4:09
15
Nginx
13:21
16
Custom Domain in Nginx
4:51
17
Let's Encrypt for HTTPs and Nginx
6:10
18
Redis
3:50
19
Celery + Supervisor + Django
8:40
20
Celery + Supervisor + Django Part 2
6:36
21
Thank you & Next Steps
1:40