feat: use configs folder for config templates
This commit is contained in:
parent
0e44798696
commit
2463ed4508
@ -1,12 +1,14 @@
|
|||||||
# Standard Go Project Template
|
# 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).
|
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
|
### Build, run and test application locally
|
||||||
|
|
||||||
#### Create environment file
|
#### Create environment file
|
||||||
Create and fill environment file from template `.env.dist`
|
Create and fill environment file from template `.env.dist`
|
||||||
``` shell
|
``` shell
|
||||||
cp .env.dist .env
|
cp configs/.env.dist .env
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Build application
|
#### Build application
|
||||||
@ -25,12 +27,14 @@ go build -ldflags "-s -w" -o bin/app .
|
|||||||
go test ./...
|
go test ./...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Build, run and debug application with docker
|
### Build, run and debug application with docker
|
||||||
|
|
||||||
#### Create environment file for docker
|
#### Create environment file for docker
|
||||||
Create and fill environment file from template `.env.dist`
|
Create and fill environment file from template `.env.dist`
|
||||||
``` shell
|
``` shell
|
||||||
cp .env.dist .env.docker
|
cp configs/.env.dist .env.docker
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Build docker container
|
#### Build docker container
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user