---r
๋ก์ปฌ ์คํ
go run main.go # ๊ฐ๋ฐํ๊ฒฝ์ผ๋ก ์คํ
go run main.go -env=prod # ์ด์ํ๊ฒฝ์ผ๋ก ์คํ
๋์ปค ์คํ
make docker.dev # ๊ฐ๋ฐํ๊ฒฝ์ผ๋ก ์คํ
make docker.prod # ์ด์ํ๊ฒฝ์ผ๋ก ์คํ
๋ก๊ทธ๋ฅผ json format ์ผ๋ก ๋ณด๊ธฐ์ํด jq ์ค์น (optional)
brew install jq
๋ก๊ทธ ํ์ธ
docker logs joosum_dev -f # ๊ฐ๋ฐํ๊ฒฝ ๋ก๊ทธํ์ธ
docker logs server 2>&1 -f | jq # ๋ฐฐํฌ์๋ฒ ๋ก๊ทธํ์ธ
- Mongo-driver: v1.11.4