From 2463ed4508f4fdbe50cfef5056ab341c7aa83653 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=24i=D1=85?= Date: Sun, 7 Aug 2022 23:37:41 +0300 Subject: [PATCH] feat: use configs folder for config templates --- README.md | 8 ++++++-- .env.dist => configs/.env.dist | 0 2 files changed, 6 insertions(+), 2 deletions(-) rename .env.dist => configs/.env.dist (100%) diff --git a/README.md b/README.md index b4d25d5..db9ca95 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,14 @@ # Standard Go Project Template This is a template for Go application projects based on [Standard Go Project Layout](https://github.com/golang-standards/project-layout). + + ### Build, run and test application locally #### Create environment file Create and fill environment file from template `.env.dist` ``` shell -cp .env.dist .env +cp configs/.env.dist .env ``` #### Build application @@ -25,12 +27,14 @@ go build -ldflags "-s -w" -o bin/app . go test ./... ``` + + ### Build, run and debug application with docker #### Create environment file for docker Create and fill environment file from template `.env.dist` ``` shell -cp .env.dist .env.docker +cp configs/.env.dist .env.docker ``` #### Build docker container diff --git a/.env.dist b/configs/.env.dist similarity index 100% rename from .env.dist rename to configs/.env.dist