feat: use configs folder for config templates

This commit is contained in:
П$iх 2022-08-07 23:37:41 +03:00
parent 0e44798696
commit 2463ed4508
2 changed files with 6 additions and 2 deletions

View File

@ -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