浏览代码

feat: always set GO_ENV=development in make dev commands

Fela Maslen 5 年之前
父节点
当前提交
cb7cde25d7
共有 2 个文件被更改,包括 6 次插入6 次删除
  1. 2 2
      gmus-backend/Makefile
  2. 4 4
      gmus-backend/README.md

+ 2 - 2
gmus-backend/Makefile

@@ -25,6 +25,6 @@ migrate.make:
 	migrate create -ext sql -dir migrations -seq $(NAME)
 
 run.scan:
-	go run ./cmd/scan
+	GO_ENV=development go run ./cmd/scan
 run.server:
-	go run ./cmd/server
+	GO_ENV=development go run ./cmd/server

+ 4 - 4
gmus-backend/README.md

@@ -36,15 +36,15 @@ After getting the [migrate CLI tool](https://github.com/golang-migrate/migrate/t
 
 This is intended to be run as a scheduled job. It will scan a directory and add relevant metadata to a PostgreSQL database.
 
-**Usage**
+**Development usage**
 
-`bin/scan`
+`make run.scan`
 
 ### REST/WebSocket API
 
-**Usage**
+**Development usage**
 
-`bin/server`
+`make run.server`
 
 This is an HTTP server running the following endpoints: