In this video I go through the full process of deploying my AI calorie counter Flask app on an AWS EC2 instance with Gunicorn, Apache and an SSL certificate from Let's Encrypt
GitHub: https://github.com/unconv/calorieapp
Support: https://buymeacoffee.com/unconv
Consultations: https://www.buymeacoffee.com/unconv/e/146735
Memberships: https://www.buymeacoffee.com/unconv/membership
00:00 Intro & App Demo
01:07 Registering a domain
01:33 Creating EC2 instance
03:03 Adding Elastic IP
04:13 Pointing domain to instance
05:23 Setting up SSH key
07:03 Transfer code to server
08:49 Installing virtual environment
09:55 Running app on server
12:07 Installing Gunicorn
14:19 Installing background service
19:27 Setting up Apache
25:15 Installing SSL certificate (Let's Encrypt)
27:53 Running Gunicorn with separate user
30:01 Bonus: Adding swap space to server