EC2 deploy DJango application | NGINX | Supervisor | Gunicorn
I am making a series of videos available to you to learn Amazon Web services and in this session we are going to talk about deploying Django application on AWS EC2 instance.
Note: Here my django application name is "welcome"
Required packages:
sudo apt-get update
sudo apt-get install python3-pip -y
sudo pip3 install gunicorn -y
sudo apt-get install supervisor
sudo apt-get install nginx -y
sudo pip3 install django
Supervisor configuration:
sudo vi /etc/supervisor/config.d/gunicorn.conf
[program:gunicorn]
directory=/home/ubuntu/welcome
command=/usr/local/bin/gunicorn --workers 3 --bind unix:/home/ubuntu/welco
me/app.sock welcome.wsgi:application
autostart=true
autorestart=true
stderr_logfile=gunicorn.err.log
stdout_logfile=gunicorn.out.log
[group:guni]
programs:gunicorn
Verify Supervisor configuration:
sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl status
NGINX configuration changes:
sudo vi /etc/nginx/sites-available/django.conf
server{
listen 80;
server_name ec2-54-221-184-166.compute-1.amazonaws.com;
location / {
include proxy_params;
proxy_pass http://unix:/home/ubuntu/welcome/app.sock;
}
}
Verify NGINX config changes and restart server:
sudo nginx -t
sudo ln django.conf /etc/nginx/sites-enabled
sudo service nginx restart
AWS Complete tutorial - https://www.youtube.com/watch?v=cakXKlc_OTk&list=PLBCBYFXVIMinELzm1GtLkWg_cPw1g8Hby
Видео EC2 deploy DJango application | NGINX | Supervisor | Gunicorn канала Technology Hub
Note: Here my django application name is "welcome"
Required packages:
sudo apt-get update
sudo apt-get install python3-pip -y
sudo pip3 install gunicorn -y
sudo apt-get install supervisor
sudo apt-get install nginx -y
sudo pip3 install django
Supervisor configuration:
sudo vi /etc/supervisor/config.d/gunicorn.conf
[program:gunicorn]
directory=/home/ubuntu/welcome
command=/usr/local/bin/gunicorn --workers 3 --bind unix:/home/ubuntu/welco
me/app.sock welcome.wsgi:application
autostart=true
autorestart=true
stderr_logfile=gunicorn.err.log
stdout_logfile=gunicorn.out.log
[group:guni]
programs:gunicorn
Verify Supervisor configuration:
sudo supervisorctl reread
sudo supervisorctl update
sudo supervisorctl status
NGINX configuration changes:
sudo vi /etc/nginx/sites-available/django.conf
server{
listen 80;
server_name ec2-54-221-184-166.compute-1.amazonaws.com;
location / {
include proxy_params;
proxy_pass http://unix:/home/ubuntu/welcome/app.sock;
}
}
Verify NGINX config changes and restart server:
sudo nginx -t
sudo ln django.conf /etc/nginx/sites-enabled
sudo service nginx restart
AWS Complete tutorial - https://www.youtube.com/watch?v=cakXKlc_OTk&list=PLBCBYFXVIMinELzm1GtLkWg_cPw1g8Hby
Видео EC2 deploy DJango application | NGINX | Supervisor | Gunicorn канала Technology Hub
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
![Deploy Django Web Application In AWS Ubuntu Instance With Nginx, MySQL, Gunicorn & Supervisor[2021].](https://i.ytimg.com/vi/JVFH8fuR4l0/default.jpg)
![How to Deploy Django on Nginx with uWSGI (full tutorial)](https://i.ytimg.com/vi/ZpR1W-NWnp4/default.jpg)
![Django | Server Setup (WSGI, Gunicorn, Nginx)](https://i.ytimg.com/vi/YnrgBeIRtvo/default.jpg)
![Deploy Django Website to Amazon Web Services (Elastic Beanstalk)](https://i.ytimg.com/vi/51YwXvJ9LOE/default.jpg)
![Hosting Django application in AWS cloud with NGINX web server and Gunicorn WSGI Server.](https://i.ytimg.com/vi/I4eN7QQzKd0/default.jpg)
![App Deployment with NGINX & Supervisor | Python App From Scratch With Justin Mitchel](https://i.ytimg.com/vi/NrEH9lYI24I/default.jpg)
![Understanding Django Static Files](https://i.ytimg.com/vi/w9F9k-JHvcQ/default.jpg)
![Setting up a Django + MySQL Development Environment on AWS EC2 Linux 2](https://i.ytimg.com/vi/DNS6OcwcxV8/default.jpg)
![Production Django, WebSockets, Django Channels 2, Daphne, Nginx, Gunicorn, HTTPS](https://i.ytimg.com/vi/14zdpWW6eqw/default.jpg)
![Deploy Django on Windows using Microsoft IIS](https://i.ytimg.com/vi/APCQ15YqqQ0/default.jpg)
![In Depth tutorial on deploying a Django application to AWS (for free) - Part 1](https://i.ytimg.com/vi/u0oEIqQV_-E/default.jpg)
![Deploy a Django App to Heroku](https://i.ytimg.com/vi/GMbVzl_aLxM/default.jpg)
![Deploying a Web App with Docker & Github Actions | Part 1](https://i.ytimg.com/vi/JsOoUrII3EY/default.jpg)
![How to Deploy Django Application on AWS EC2 | Nginx | Gunicorn | WSGI | Supervisor |HTTPS Request](https://i.ytimg.com/vi/vmMyuZSHt3c/default.jpg)
![AWS SQS + Lambda | Setup | Integration | Trigger Lambda via SQS](https://i.ytimg.com/vi/-n85BcnEuMA/default.jpg)
![AWS SNS-SQS Pub/Sub Part-1 using Serverless Framework](https://i.ytimg.com/vi/l-hGVwyV0zo/default.jpg)
![AWS Read CSV file data from S3 via Lambda function and put into DynamoDB](https://i.ytimg.com/vi/R445FVhQagU/default.jpg)
![Deploy Django on AWS | Django Deployment NGINX GUNICORN | Django Deployment](https://i.ytimg.com/vi/dBTIAfi7y5U/default.jpg)
![Deploying Django with Docker Compose, Gunicorn and Nginx](https://i.ytimg.com/vi/vJAfq6Ku4cI/default.jpg)
![Installing nginx on Amazon Linux on an EC2 instance](https://i.ytimg.com/vi/leCZ7htfB_g/default.jpg)