Add createdb

Fixes initial error:

    FATAL:  database "<user>" does not exist

<https://stackoverflow.com/a/17936043>
This commit is contained in:
Victor Lin 2024-04-28 08:25:30 -07:00
parent 9d9c4e6bf7
commit de4d83b3f3

View file

@ -184,6 +184,7 @@ brew install crystal postgresql imagemagick librsvg
```bash
brew services start postgresql
createdb
psql -c "CREATE ROLE kemal WITH PASSWORD 'kemal';" # Change 'kemal' here to a stronger password, and update `password` in config/config.yml
createdb -O kemal invidious
psql invidious kemal < config/sql/channels.sql