How deploy an ASGI Django Application with Postgres, Nginx, and Uvicorn on Ubuntu
How To Serve Multiple Django Applications with Ngnix and Uvicorn on Ubuntu
7 min readSep 10, 2022
Hey folks ,Today we are going to learn host multiple ASGI Based Django Application (API) in single droplets (Digitalocean).
Prerequisite:
- A Droplets
- A Record Domain or Sub-domain
- Add Subdomain to Droplets
- Setup PostgreSQL
- Import content & Configure apps
- Create Apache Virtual Hosts
So we are ready to deploy our first Application..
Note: Here, I have explained Step 1,2 and 3 .
1. Initializing Droplet :
Open Terminal , and write ssh root@167.99.157.225
and enter droplet password for access the droplet.
Now we gone update ubuntu all repository for update all packages in system.
$ sudo apt update
$ sudo apt install python3-venv libpq-dev nginx curl