Deploy Django Project on AWS EC2 | Django Deployment NGINX GUNICORN | Django Deployment
1. sudo apt update
2. sudo apt install python3-venv python3-dev
3. python3 -m venv myprojectenv
4. source myprojectenv/bin/activate
5. sudo apt-get install -y nginx
6. pip install gunicorn
7. sudo apt-get install supervisor
8. cd /etc/supervisor/conf.d/
9. sudo touch gunicorn.conf
10. sudo nano gunicorn.conf
11. [program:gunicorn]
directory=/home/ubuntu/your_project_name
command=/home/ubuntu/myprojectenv/bin/gunicorn --workers 3 --bind unix:/home/ubuntu/your_project_name/app.sock csadminpanel.wsgi:application
autostart=true
autorestart=true
stderr_logfile=/var/log/gunicorn/gunicorn.err.log
stdout_logfile=/var/log/gunicorn/gunicorn.out.log
[group:guni]
programs:gunicorn
12. sudo mkdir /var/log/gunicorn
13. sudo supervisorctl reread
14. sudo supervisorctl update
15. sudo supervisorctl status
16. cd
17. cd /etc/nginx
18. sudo nano nginx.conf
user root
19. cd sites-available
20. sudo touch django.conf
21. sudo nano django.conf
server{
listen 80;
server_name ;
location / {
include proxy_params;
proxy_pass http://unix:/home/ubuntu/your_project_name/app.sock;
}
}
22. sudo nginx -t
23. sudo ln django.conf /etc/nginx/sites-enabled
24. sudo service nginx restart
Видео Deploy Django Project on AWS EC2 | Django Deployment NGINX GUNICORN | Django Deployment канала codeflute
2. sudo apt install python3-venv python3-dev
3. python3 -m venv myprojectenv
4. source myprojectenv/bin/activate
5. sudo apt-get install -y nginx
6. pip install gunicorn
7. sudo apt-get install supervisor
8. cd /etc/supervisor/conf.d/
9. sudo touch gunicorn.conf
10. sudo nano gunicorn.conf
11. [program:gunicorn]
directory=/home/ubuntu/your_project_name
command=/home/ubuntu/myprojectenv/bin/gunicorn --workers 3 --bind unix:/home/ubuntu/your_project_name/app.sock csadminpanel.wsgi:application
autostart=true
autorestart=true
stderr_logfile=/var/log/gunicorn/gunicorn.err.log
stdout_logfile=/var/log/gunicorn/gunicorn.out.log
[group:guni]
programs:gunicorn
12. sudo mkdir /var/log/gunicorn
13. sudo supervisorctl reread
14. sudo supervisorctl update
15. sudo supervisorctl status
16. cd
17. cd /etc/nginx
18. sudo nano nginx.conf
user root
19. cd sites-available
20. sudo touch django.conf
21. sudo nano django.conf
server{
listen 80;
server_name ;
location / {
include proxy_params;
proxy_pass http://unix:/home/ubuntu/your_project_name/app.sock;
}
}
22. sudo nginx -t
23. sudo ln django.conf /etc/nginx/sites-enabled
24. sudo service nginx restart
Видео Deploy Django Project on AWS EC2 | Django Deployment NGINX GUNICORN | Django Deployment канала codeflute
#AWSCloud #AWSLambda #AWSDevOps #AWS #AmazonWebServices #EC2 #S3 #LiveStreaming #Technology #GamingLive #CookingShow #MusicPerformance #TechConference2023 #E3GamingExpo #CookingFestLive #MusicFestivalLive #YourBrandLive #YourEventNameLive #YourChannelNameLive #NewYorkTechTalk #LAConcertLive #ParisFoodieLive #aws #djangoprojects #hosting #liveproject #liveporjects #Server #aws #ec2
Комментарии отсутствуют
Информация о видео
27 сентября 2023 г. 12:47:06
00:19:42
Другие видео канала