From f10160507b4309e6260655725fbf73d8be2c09fe Mon Sep 17 00:00:00 2001 From: Yusuke Tanaka Date: Sat, 4 May 2024 10:57:44 +0900 Subject: [PATCH 1/2] add a step to set DATABASE_URL properly for non Deno employees --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 54ca38ca..e6d5a3b2 100644 --- a/README.md +++ b/README.md @@ -91,6 +91,7 @@ making changes to the API. 2. Copy `api/.env.example` to `api/.env` 3. Set `GITHUB_CLIENT_ID` and `GITHUB_CLIENT_SECRET` to the values from the GitHub App you created in step 1. + 4. Set `DATABASE_URL` to point to your local Postgres database. - Install `sqlx` by running `cargo install sqlx-cli` **macOS** From b940f10c256a7558a4cdef21a43aad30aa55c9a5 Mon Sep 17 00:00:00 2001 From: Yusuke Tanaka Date: Sat, 4 May 2024 10:58:01 +0900 Subject: [PATCH 2/2] add a step to run schema migration in Linux --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index e6d5a3b2..e5a637bf 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,10 @@ making changes to the API. **Linux** - `docker` & `docker-compose` installed and running +- Run `cd api` +- Run `cargo sqlx migrate run` + - If you get the error `role "postgres" does not exist`, run + `createuser -s postgres`. ### Running jsr