Fix supfile to use goose for migrations
This commit is contained in:
parent
699dc1143d
commit
6b4eb57571
2
Makefile
2
Makefile
@ -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
|
||||||
|
3
Supfile
3
Supfile
@ -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: >
|
||||||
|
Loading…
Reference in New Issue
Block a user