- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
How To deploy Django with Postgres, Nginx, and Gunicorn on Ubuntu||Clinic management system
Part-13: In this video, We will learn that How To deploy Django with Postgres, Nginx, and Gunicorn on Ubuntu woth VPS Server and SSH terminal.
#CodeArtisanLab #Django #PostgreSQL #Bootstrap5 #ClinicManagementSystem
Thank you for watching 🙏
LIKE ✦ COMMENT ✦ SHARE ✦ SUBSCRIBE
-----------------------------------------------
## Deployment Process
1. Install the Packages from the Ubuntu Repositories
- sudo apt update
- sudo apt install python3-venv python3-dev libpq-dev postgresql postgresql-contrib nginx curl
2. Creating the PostgreSQL Database and User
- sudo -u postgres psql
- CREATE DATABASE clinic_system;
- CREATE USER clinic_user WITH PASSWORD 'yourpassword';
- GRANT ALL PRIVILEGES ON DATABASE clinic_system TO clinic_user;
3. Create a Python Virtual Environment for Project
- python3 -m venv env
- source env/bin/activate
4. Create and Configure New Django Project
- Clone django project from git
- sudo apt install git
- git clone project-repo-link
- Install requirements
- pip install -r requirements.txt
- Update settings
- allowed host
- static root setting
- run migrations
- collect static
- try to run on 0.0.0.0:8000
5. Try to Serve project via gunicorn
- Install gunicorn - pip install gunicorn
- gunicorn --bind 0.0.0.0:8000 main.wsgi
6. Creating Gunicorn systemd Socket and Service Files
- sudo vim /etc/systemd/system/gunicorn.socket
[Unit]
Description=gunicorn socket
[Socket]
ListenStream=/run/gunicorn.sock
[Install]
WantedBy=sockets.target
- sudo vim /etc/systemd/system/gunicorn.service
[Unit]
Description=gunicorn daemon
Requires=gunicorn.socket
After=network.target
[Service]
User=root
Group=www-data
WorkingDirectory=/root/django_projects/Clinic_management_system_in_django_bootstrap_postgresql/main
ExecStart=/p/root/django_projects/env/bin/gunicorn \
--access-logfile - \
--workers 3 \
--bind unix:/run/gunicorn.sock \
main.wsgi:application
[Install]
WantedBy=multi-user.target
- sudo systemctl start gunicorn.socket
- sudo systemctl enable gunicorn.socket
- sudo systemctl status gunicorn
- sudo systemctl daemon-reload (if you do any change)
- sudo systemctl restart gunicorn
7. Configure Nginx to Proxy Pass to Gunicorn
- sudo vim /etc/nginx/sites-available/clinic_system
server {
listen 80;
server_name 108.170.31.73;
location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
root /root/django_projects/Clinic_management_system_in_django_bootstrap_postgresql/main;
}
location / {
include proxy_params;
proxy_pass http://unix:/run/gunicorn.sock;
}
}
- sudo ln -s /etc/nginx/sites-available/clinic_system /etc/nginx/sites-enabled
- sudo nginx -t (test nginx settings)
- sudo systemctl status nginx
## Tutorials
=======================
Clinic Management System with #Django #PostgreSQL #Bootstrap #CodeArtisanLab - https://www.youtube.com/playlist?list=PLgnySyq8qZmobOgTFg561RoBBBAmi8HKW
----------------------------
Multivendor Ecommerce Website in Django 4, ReactJs 18, and Bootstrap 5 - https://www.youtube.com/watch?v=FHtNnZ_9QYM&list=PLgnySyq8qZmo3d4uzPefYoGBN9Vpl266U
----------------------------
Learning Management System in Django ReactJs Bootstrap 5 - https://www.youtube.com/playlist?list=PLgnySyq8qZmox-EAyxkPYe14ZVCVSBMdK
----------------------------
Ecommerce Website in Django 3 and Bootstrap 4 - https://www.youtube.com/watch?v=PK31zEH_oS0&list=PLgnySyq8qZmrugSQI6kdrcGGehoUBwDgo
----------------------------
PhotoGallery Website in Django 3, Sqlite and Bootstrap 5 - https://www.youtube.com/watch?v=-GIUqoWUUuw
----------------------------
Django Rest Api with Authentication - https://www.youtube.com/watch?v=73k8kVXRbEs
----------------------------
Employee Register App in Codeigniter 4 and Bootstrap 4 - https://www.youtube.com/watch?v=WcYM1V3Fyf4&list=PLgnySyq8qZmrNJe9s50tGaPTwoBaaLnl0
----------------------------
Django Patient Record App - https://www.youtube.com/playlist?list=PLgnySyq8qZmpamcHp43rn6wExjn_0tLCH
----------------------------
Django Question Answer Website - https://www.youtube.com/playlist?list=PLgnySyq8qZmppPt0OINwCY6pEz__71lrw
----------------------------
Django News Website - https://www.youtube.com/playlist?list=PLgnySyq8qZmpa9xwYhI9XbwI9sbNR7bWK
----------------------------
Django ReactJs Employee Register App - https://www.youtube.com/playlist?list=PLgnySyq8qZmoaNY6EoMDVfh7D5uCSTP-l
----------------------------
⚡️Tags⚡️
--------------
- Clinic management system in django
- Django postgresql bootstrap project
- Learn django with example projects
- Django live projects
- Django Projects
- Learn Django with example project
- How to deploy django on vps server
- How to deploy django project from git to VPS server
- How To deploy Django with Postgres, Nginx, and Gunicorn on Ubuntu
Видео How To deploy Django with Postgres, Nginx, and Gunicorn on Ubuntu||Clinic management system канала Code Artisan Lab
#CodeArtisanLab #Django #PostgreSQL #Bootstrap5 #ClinicManagementSystem
Thank you for watching 🙏
LIKE ✦ COMMENT ✦ SHARE ✦ SUBSCRIBE
-----------------------------------------------
## Deployment Process
1. Install the Packages from the Ubuntu Repositories
- sudo apt update
- sudo apt install python3-venv python3-dev libpq-dev postgresql postgresql-contrib nginx curl
2. Creating the PostgreSQL Database and User
- sudo -u postgres psql
- CREATE DATABASE clinic_system;
- CREATE USER clinic_user WITH PASSWORD 'yourpassword';
- GRANT ALL PRIVILEGES ON DATABASE clinic_system TO clinic_user;
3. Create a Python Virtual Environment for Project
- python3 -m venv env
- source env/bin/activate
4. Create and Configure New Django Project
- Clone django project from git
- sudo apt install git
- git clone project-repo-link
- Install requirements
- pip install -r requirements.txt
- Update settings
- allowed host
- static root setting
- run migrations
- collect static
- try to run on 0.0.0.0:8000
5. Try to Serve project via gunicorn
- Install gunicorn - pip install gunicorn
- gunicorn --bind 0.0.0.0:8000 main.wsgi
6. Creating Gunicorn systemd Socket and Service Files
- sudo vim /etc/systemd/system/gunicorn.socket
[Unit]
Description=gunicorn socket
[Socket]
ListenStream=/run/gunicorn.sock
[Install]
WantedBy=sockets.target
- sudo vim /etc/systemd/system/gunicorn.service
[Unit]
Description=gunicorn daemon
Requires=gunicorn.socket
After=network.target
[Service]
User=root
Group=www-data
WorkingDirectory=/root/django_projects/Clinic_management_system_in_django_bootstrap_postgresql/main
ExecStart=/p/root/django_projects/env/bin/gunicorn \
--access-logfile - \
--workers 3 \
--bind unix:/run/gunicorn.sock \
main.wsgi:application
[Install]
WantedBy=multi-user.target
- sudo systemctl start gunicorn.socket
- sudo systemctl enable gunicorn.socket
- sudo systemctl status gunicorn
- sudo systemctl daemon-reload (if you do any change)
- sudo systemctl restart gunicorn
7. Configure Nginx to Proxy Pass to Gunicorn
- sudo vim /etc/nginx/sites-available/clinic_system
server {
listen 80;
server_name 108.170.31.73;
location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
root /root/django_projects/Clinic_management_system_in_django_bootstrap_postgresql/main;
}
location / {
include proxy_params;
proxy_pass http://unix:/run/gunicorn.sock;
}
}
- sudo ln -s /etc/nginx/sites-available/clinic_system /etc/nginx/sites-enabled
- sudo nginx -t (test nginx settings)
- sudo systemctl status nginx
## Tutorials
=======================
Clinic Management System with #Django #PostgreSQL #Bootstrap #CodeArtisanLab - https://www.youtube.com/playlist?list=PLgnySyq8qZmobOgTFg561RoBBBAmi8HKW
----------------------------
Multivendor Ecommerce Website in Django 4, ReactJs 18, and Bootstrap 5 - https://www.youtube.com/watch?v=FHtNnZ_9QYM&list=PLgnySyq8qZmo3d4uzPefYoGBN9Vpl266U
----------------------------
Learning Management System in Django ReactJs Bootstrap 5 - https://www.youtube.com/playlist?list=PLgnySyq8qZmox-EAyxkPYe14ZVCVSBMdK
----------------------------
Ecommerce Website in Django 3 and Bootstrap 4 - https://www.youtube.com/watch?v=PK31zEH_oS0&list=PLgnySyq8qZmrugSQI6kdrcGGehoUBwDgo
----------------------------
PhotoGallery Website in Django 3, Sqlite and Bootstrap 5 - https://www.youtube.com/watch?v=-GIUqoWUUuw
----------------------------
Django Rest Api with Authentication - https://www.youtube.com/watch?v=73k8kVXRbEs
----------------------------
Employee Register App in Codeigniter 4 and Bootstrap 4 - https://www.youtube.com/watch?v=WcYM1V3Fyf4&list=PLgnySyq8qZmrNJe9s50tGaPTwoBaaLnl0
----------------------------
Django Patient Record App - https://www.youtube.com/playlist?list=PLgnySyq8qZmpamcHp43rn6wExjn_0tLCH
----------------------------
Django Question Answer Website - https://www.youtube.com/playlist?list=PLgnySyq8qZmppPt0OINwCY6pEz__71lrw
----------------------------
Django News Website - https://www.youtube.com/playlist?list=PLgnySyq8qZmpa9xwYhI9XbwI9sbNR7bWK
----------------------------
Django ReactJs Employee Register App - https://www.youtube.com/playlist?list=PLgnySyq8qZmoaNY6EoMDVfh7D5uCSTP-l
----------------------------
⚡️Tags⚡️
--------------
- Clinic management system in django
- Django postgresql bootstrap project
- Learn django with example projects
- Django live projects
- Django Projects
- Learn Django with example project
- How to deploy django on vps server
- How to deploy django project from git to VPS server
- How To deploy Django with Postgres, Nginx, and Gunicorn on Ubuntu
Видео How To deploy Django with Postgres, Nginx, and Gunicorn on Ubuntu||Clinic management system канала Code Artisan Lab
codeartisanlab programming web development coding suraj kumar django models django model form create form in django ClinicManagement Django Bootstrap PostgreSQL HealthcareIT ElectronicHealthRecords MedicalRecords MedicalManagement HealthTech WebDevelopment UserInterface ResponsiveDesign HealthcareSoftware MedicalSystem HealthcareManagement AdminPanel DataSecurity deploy django django gunicorn nginx django vps server
Комментарии отсутствуют
Информация о видео
23 марта 2024 г. 16:30:01
00:14:58
Другие видео канала




















