fix: instructions to run locally (#188)

- I had to set `DB_USER` seperately for the DB migrations to run.
- I had top copy over the `settings.yaml` file because it wasn't created by default.
This commit is contained in:
kiwiidb
2023-02-10 21:48:32 +01:00
committed by GitHub
parent 5f0fd2b9fd
commit 202737c7b8

View File

@ -183,6 +183,7 @@ Set the following environment variables:
``` ```
DB_URI="postgresql://postgres:postgres@localhost:5432/nostr_ts_relay_test" DB_URI="postgresql://postgres:postgres@localhost:5432/nostr_ts_relay_test"
DB_USER=postgres
or or
@ -236,10 +237,11 @@ Run migrations (at least once and after pulling new changes):
npm run db:migrate npm run db:migrate
``` ```
Create .nostr folder inside nostream project folder: Create .nostr folder inside nostream project folder and copy over the settings file:
``` ```
mkdir .nostr mkdir .nostr
cp resources/default-settings.yaml .nostr/settings.yaml
``` ```
To start in development mode: To start in development mode: