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

Gautamankul
7 min readSep 10, 2022
How deploy an ASGI Django Application with Postgres, Nginx, and Uvicorn on Ubuntu

Hey folks ,Today we are going to learn host multiple ASGI Based Django Application (API) in single droplets (Digitalocean).

Prerequisite:

  1. A Droplets
  2. A Record Domain or Sub-domain
  3. Add Subdomain to Droplets
  4. Setup PostgreSQL
  5. Import content & Configure apps
  6. 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

--

--

Gautamankul

A Software Developer Engineer & Entrepreneur and along with i am a Buddhist.