Properly deploy python API - Flask / Gunicorn / Systemd / Nginx

Опубликовано: 13 Май 2026
на канале: Cotupia
1,984
13

We will deploy a simple flask web app ( api ) on ec2 server from aws

Here are the steps:

1- We will clone our project on the server
2- Then we create python virtual environment
3- Install and test Gunicorn
4- Setup systemd service to take care about running our app
5- Bind Gunicorn to linux socket
6- Use nginx as a reverse proxy to forward requests to the linux socket