Commit 3cefbbbd authored by Somnath Ghorpade's avatar Somnath Ghorpade
Browse files

added gitignore file and also changes config path in compose file.

parent 8d215c20
Branches
1 merge request!2added gitignore file and also changes config path in compose file.
This commit is part of merge request !2. Comments created here will be created in the context of that merge request.
Showing with 13 additions and 4 deletions
.gitignore 0 → 100644
logs/
servers/logs/
servers/configs/database.json
configs/database.json
\ No newline at end of file
......@@ -52,6 +52,13 @@ Golang Gin web framework template project
Note: All Immudb operations' result is in Base64 format.
## Docker usage
```
To run project on your local please follow steps
- Kindly install docker and docker-compose latest version on your local machine
- Run command docker-compose up on you command prompt
```
## database json format
......
version: '3'
services:
gogintemplate:
build:
......@@ -9,4 +8,4 @@ services:
- "3000:3000"
volumes:
- ./logs:/application/logs
- ./configs:/application/configs
\ No newline at end of file
- ./configs:/application/servers/configs
\ No newline at end of file
......@@ -8,7 +8,6 @@ import (
"golangtemplate/servers/common"
"golangtemplate/servers/middleware"
"golangtemplate/servers/routes"
"io/ioutil"
"net"
"os"
"path/filepath"
......@@ -108,7 +107,7 @@ func initializeAll(g *gin.Engine) error {
routes.Init(g)
// read file and initialise mongo connection
content, err := ioutil.ReadFile(models.ConfigPath)
content, err := os.ReadFile(models.ConfigPath)
if err != nil {
loggermdl.LogError(err)
return err
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment