Template
feat: use configs folder for config templates
This commit is contained in:
1 parent
0e44798696
commit
2463ed4508
2 files changed
+6
-2
No files matched your search
@@ -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
|
||||
|
||||
File renamed without changes.
Reference in new issue
Block a user