DB_URI
Database Url
There are two ways to manage your database
Hosting it on Elephantsql
We recommend to use this method and it's quick and easy
Go to https://www.elephantsql.com/ and create a account..
Verify you email id
Create a free tiny instance
Then go your instance details and copy the url and that url is your DB_URI
Hosting it manually
If you're on debian based distro then simply put this command
Then follows these steps:
Change the user to postgres to change the default ident password:
And then open the PostgreSQL shell:
Set any password you prefer, by running the below SQL:
Create a database:
Now quit PostgreSQL shell:
And for going back to your user:
Now, the DB_URI will be:
Last updated