Skip to content

Commit

Permalink
Add SQLX_OFFLINE environment flag to documentation
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ELginas authored and syphar committed Apr 21, 2024
1 parent 68032bc commit f6eaee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f6eaee8

Please sign in to comment.