We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
make initdb
1 parent 21cdc96 commit 35ef1d1Copy full SHA for 35ef1d1
Makefile
@@ -149,6 +149,9 @@ ifneq ($(PR), false)
149
endif
150
151
initdb:
152
+ ifeq (, $(shell which xz))
153
+ $(error "No xz available on PATH, install xz-utils!")
154
+ endif
155
docker-compose run --rm web psql -h db -d postgres -U postgres -c "DROP DATABASE IF EXISTS warehouse"
156
docker-compose run --rm web psql -h db -d postgres -U postgres -c "CREATE DATABASE warehouse ENCODING 'UTF8'"
157
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 -
0 commit comments