Update 02-local-development.md (#215)

I have added some debugging notes that might save some time for an Arch user setting up Postgres. Specifically, sometimes pacman sets up the database cluster incorrectly and some extra bash commands need to be issued before systemctl can start the service.
This commit is contained in:
TheSaneWriter 2023-06-20 09:09:19 -04:00 committed by GitHub
parent f5c8c9045e
commit 3ef966df4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,6 +44,11 @@ Arch-based distro:
```bash ```bash
sudo pacman -S postgresql sudo pacman -S postgresql
sudo systemctl start postgresql sudo systemctl start postgresql
# If the systemctl command errors, then run the following
sudo mkdir /var/lib/postgres/data
sudo chown postgres:postgres /var/lib/postgres/data
sudo -u postgres initdb -D /var/lib/postgres/data
sudo systemctl start postgresql
``` ```
macOS: macOS: