From f6eaee805479df7bfe9cfc86d5d5249dbf49e6e3 Mon Sep 17 00:00:00 2001 From: ELginas <42967362+ELginas@users.noreply.github.com> Date: Sat, 20 Apr 2024 17:48:55 +0300 Subject: [PATCH] Add SQLX_OFFLINE environment flag to documentation Building without `SQLX_OFFLINE=1` fails because sqlx complains about "relative URL without a base" error and makes it more consistent with GitHub Actions test build because it already includes this environment flag. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 4d59dc5e7..149f3d5ce 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ cp .env.sample .env # Create the DOCSRS_PREFIX directory mkdir -p ignored/cratesfyi-prefix/crates.io-index # Builds the docs.rs binary -cargo build +SQLX_OFFLINE=1 cargo build # Start the external services. # It may be `docker compose` in newer versions docker-compose up -d db s3