Deploy Django on AWS EC2 Beginners Tutorial
7.3 هزار بار بازدید -
پارسال
-
In this video, we will
In this video, we will deploy a django app on an AWS EC2 instance. This will be a simple deployment focusing on the basics of setting everything up using the Ubuntu 22 AMI.
Troubleshooting Commands:
1. If systemctl status indicates any errors or you can't find the gunicorn.sock file, check the logs by running:
sudo journalctl -u gunicorn.sock
2. If you need to change the gunicorn.service file, make sure to restart by running:
sudo systemctl daemon-reload
sudo systemctl restart gunicorn
3. If you need to make changes to the nginx server block in /etc/nginx/sites-available, make sure to test the syntax by running:
sudo nginx -t
and make sure to restart nginx by running:
sudo systemctl restart nginx
If you want to add a domain name, here is a tutorial online that could help you:
https://pythoncircle.com/post/699/usi...
Project Code:
https://github.com/legionscript/AWS-D...
Build the Blog That We Used Here:
Build a Blog using Django, Python, an...
Free Structured Courses on LegionScript.com:
https://www.legionscript.com/
Troubleshooting Commands:
1. If systemctl status indicates any errors or you can't find the gunicorn.sock file, check the logs by running:
sudo journalctl -u gunicorn.sock
2. If you need to change the gunicorn.service file, make sure to restart by running:
sudo systemctl daemon-reload
sudo systemctl restart gunicorn
3. If you need to make changes to the nginx server block in /etc/nginx/sites-available, make sure to test the syntax by running:
sudo nginx -t
and make sure to restart nginx by running:
sudo systemctl restart nginx
If you want to add a domain name, here is a tutorial online that could help you:
https://pythoncircle.com/post/699/usi...
Project Code:
https://github.com/legionscript/AWS-D...
Build the Blog That We Used Here:
Build a Blog using Django, Python, an...
Free Structured Courses on LegionScript.com:
https://www.legionscript.com/
پارسال
در تاریخ 1401/12/29 منتشر شده
است.
7,314
بـار بازدید شده