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
|
||||
|
||||
.PHONY: installtools
|
||||
installtools: | $(LINT) $(MIGRATE) $(GINKGO) $(DEP)
|
||||
installtools: | $(LINT) $(GOOSE) $(GINKGO) $(DEP)
|
||||
echo "Installing tools"
|
||||
|
||||
.PHONY: metalint
|
||||
|
3
Supfile
3
Supfile
@ -38,7 +38,8 @@ commands:
|
||||
run: >
|
||||
cd $VDB_PATH &&
|
||||
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:
|
||||
desc: build postgraphile app
|
||||
run: >
|
||||
|
Loading…
Reference in New Issue
Block a user