diff --git a/Makefile b/Makefile index 11d85ecefa16..28bfb872c99d 100644 --- a/Makefile +++ b/Makefile @@ -86,7 +86,7 @@ initdb: .state/docker-build-web docker-compose run --rm web psql -h db -d postgres -U postgres -c "SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname ='warehouse';" docker-compose run --rm web psql -h db -d postgres -U postgres -c "DROP DATABASE IF EXISTS warehouse" docker-compose run --rm web psql -h db -d postgres -U postgres -c "CREATE DATABASE warehouse ENCODING 'UTF8'" - xz -d -f -k dev/$(DB).sql.xz --stdout | docker-compose run --rm web psql -h db -d warehouse -U postgres -v ON_ERROR_STOP=1 -1 -f - + docker-compose run --rm web bash -c "xz -d -f -k dev/$(DB).sql.xz --stdout | psql -h db -d warehouse -U postgres -v ON_ERROR_STOP=1 -1 -f -" docker-compose run --rm web python -m warehouse db upgrade head docker-compose run --rm web python -m warehouse sponsors populate-db $(MAKE) reindex diff --git a/docs/development/getting-started.rst b/docs/development/getting-started.rst index c8982c1fe945..8fadd3c8e555 100644 --- a/docs/development/getting-started.rst +++ b/docs/development/getting-started.rst @@ -241,11 +241,6 @@ This command will: * load some example data from `Test PyPI`_, and * index all the data for the search database. -.. note:: - - If you get an error about xz, you may need to install the ``xz`` utility. - This is highly likely on macOS and Windows. - Once the ``make initdb`` command has finished, you are ready to continue.