ch20.2
This commit is contained in:
6
Makefile
6
Makefile
@@ -1,5 +1,5 @@
|
||||
run/api:
|
||||
go run ./cmd/api
|
||||
go run ./cmd/api -db-dsn=${GREENLIGHT_DB_DSN}
|
||||
|
||||
db/migrations/up:
|
||||
@echo 'Running up migrations...'
|
||||
@@ -7,4 +7,6 @@ db/migrations/up:
|
||||
|
||||
db/migrations/new:
|
||||
@echo 'Creating migration files for ${name}...'
|
||||
migrate create -seq -ext=.sql -dir=./migrations ${name}
|
||||
migrate create -seq -ext=.sql -dir=./migrations ${name}
|
||||
|
||||
.PHONY: run/api
|
||||
Reference in New Issue
Block a user