Fix supfile to use goose for migrations

This commit is contained in:
Edvard 2019-01-24 12:03:44 +01:00
parent 699dc1143d
commit 6b4eb57571
2 changed files with 3 additions and 2 deletions

View File

@ -26,7 +26,7 @@ $(BIN)/gometalinter.v2:
$(METALINT) --install $(METALINT) --install
.PHONY: installtools .PHONY: installtools
installtools: | $(LINT) $(MIGRATE) $(GINKGO) $(DEP) installtools: | $(LINT) $(GOOSE) $(GINKGO) $(DEP)
echo "Installing tools" echo "Installing tools"
.PHONY: metalint .PHONY: metalint

View File

@ -38,7 +38,8 @@ commands:
run: > run: >
cd $VDB_PATH && cd $VDB_PATH &&
make installtools && make installtools &&
/root/go_projects/bin/migrate -database postgresql://$VDB_PG_USER:$VDB_PG_PW@127.0.0.1:5432/vulcanize_public?sslmode=disable -path ./db/migrations up cd db/migrations &&
/root/go_projects/bin/goose postgres "postgresql://$(VDB_PG_USER):$(VDB_PG_PW)@127.0.0.1:5432/vulcanize_public?sslmode=disable" up
buildPostgraphile: buildPostgraphile:
desc: build postgraphile app desc: build postgraphile app
run: > run: >