You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/self-hosting.md
+51Lines changed: 51 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -44,3 +44,54 @@
44
44
> If this gets stuck your database URL is most likely incorrect. Please check the URL (port as well, port is usually 5432). You should give the command 30 seconds to run before you assume it's stuck.
45
45
46
46
7. Run `(prefix)help` in your server to see if the bot is running. If it is, now you can start configuring the bot.
47
+
48
+
## Setting Up a Local PostgreSQL Database
49
+
50
+
If you prefer running PostgreSQL locally instead of using Supabase, follow these steps:
51
+
52
+
1. **Install PostgreSQL**
53
+
54
+
On Debian, run:
55
+
56
+
```bash
57
+
sudo apt update
58
+
sudo apt install postgresql postgresql-contrib
59
+
```
60
+
61
+
2. **Start and enable the PostgreSQL service**
62
+
63
+
```bash
64
+
sudo systemctl start postgresql
65
+
sudo systemctl enable postgresql
66
+
```
67
+
68
+
3. **Create a database user and database**
69
+
70
+
Switch to the `postgres` user and enter the PostgreSQL shell:
0 commit comments