This commit is contained in:
teguh nugroho 2026-08-16 22:37:17 +07:00
parent 8855495bb4
commit 16d6d97d4c
6 changed files with 18 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
notes.txt
_internal/
**/*.json
server/*

0
.woodpeker.yml Normal file
View File

4
Dockerfile.minimal Normal file
View File

@ -0,0 +1,4 @@
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /app/backend/cmd/api
ENTRYPOINT ["../../server/api/server"]

View File

@ -26,7 +26,7 @@ func NewConfig() ConfigInterface {
return &Config{}
}
func (c *Config) Load() {
pathConfig := "./../config.json"
pathConfig := "./../../config.json"
realPath, err := filepath.Abs(pathConfig)
if err != nil {
log.Fatal(err.Error())

View File

@ -456,3 +456,8 @@
{"level":"info","ts":"2026-08-16T01:09:49.793+0700","caller":"middleware/auth.go:90","msg":"Set Auth : {\"blocked\":false,\"blocked_notes\":null,\"citys_relation\":null,\"created_by\":null,\"created_on\":\"2026-08-11T20:29:00.18279Z\",\"districts_relation\":null,\"email\":\"crackers.biscuits@gmail.com\",\"id\":\"19ff1031a11c0c013f60044f56\",\"is_active\":true,\"merchant_id\":null,\"merchant_relation\":null,\"merchants_relation\":null,\"nick_name\":\"Super Admin\",\"postal_codes_relation\":null,\"provinces_relation\":null,\"subdistricts_relation\":null,\"updated_by\":null,\"updated_on\":\"2026-08-11T20:29:00.18279Z\",\"users_role_id\":\"19fe813c54d12bf48f1d7c710e\",\"users_role_relation\":{\"created_by\":null,\"created_on\":null,\"id\":\"\",\"merchant_id\":null,\"merchant_relation\":{\"active\":null,\"additional_information\":null,\"address\":null,\"city_id\":null,\"city_relation\":null,\"citys_relation\":null,\"created_by\":null,\"created_by_relation\":null,\"created_on\":null,\"district_id\":null,\"district_relation\":null,\"districts_relation\":null,\"email\":null,\"id\":\"\",\"modas_relation\":null,\"name\":null,\"package_types_relation\":null,\"postal_code\":null,\"postal_codes_relation\":null,\"province_id\":null,\"province_relation\":null,\"provinces_relation\":null,\"subdistrict_id\":null,\"subdistrict_relation\":null,\"subdistricts_relation\":null,\"telp\":null,\"updated_by\":null,\"updated_on\":null,\"users_roless_relation\":null,\"userss_relation\":null},\"name\":null,\"role_key\":\"\",\"updated_by\":null,\"updated_on\":null,\"userss_relation\":null}}"}
{"level":"info","ts":"2026-08-16T01:09:49.806+0700","caller":"handlers/handlers.go:64","msg":"Request Success","status":200,"method":"POST","path":"/logout","query":"","ip":"127.0.0.1","latency":0.040288125,"user-agent":"insomnia/13.1.0"}
{"level":"info","ts":"2026-08-16T01:09:56.587+0700","caller":"handlers/handlers.go:64","msg":"Request Success","status":200,"method":"POST","path":"/login","query":"","ip":"127.0.0.1","latency":0.1347395,"user-agent":"insomnia/13.1.0"}
{"level":"info","ts":"2026-08-16T17:36:56.260+0700","caller":"database/database.go:53","msg":"Connect To Master DB"}
{"level":"info","ts":"2026-08-16T17:36:56.644+0700","caller":"database/database.go:63","msg":"DB Master Connected"}
{"level":"info","ts":"2026-08-16T17:36:56.644+0700","caller":"database/database.go:76","msg":"Connect To Slave DB"}
{"level":"info","ts":"2026-08-16T17:36:57.127+0700","caller":"database/database.go:86","msg":"DB Connection Done"}
{"level":"info","ts":"2026-08-16T17:36:57.678+0700","caller":"handlers/handlers.go:81","msg":"Starting Apps"}

View File

@ -3124,3 +3124,9 @@
{"level":"info","ts":"2026-08-16T01:08:55.372+0700","caller":"database/redis.go:62","msg":"Connected"}
{"level":"info","ts":"2026-08-16T01:08:55.887+0700","caller":"logger/database.go:90","msg":"[GORM] query execution","line":"/Users/teguh/Documents/project/cargo/cargo-erp-deploy/app/backend/internal/usecases/auth.go:29","elapsed":0.053926792,"rows":1,"sql":"SELECT * FROM \"users\" WHERE email='crackers.biscuits@gmail.com'"}
{"level":"info","ts":"2026-08-16T01:09:56.486+0700","caller":"logger/database.go:90","msg":"[GORM] query execution","line":"/Users/teguh/Documents/project/cargo/cargo-erp-deploy/app/backend/internal/usecases/auth.go:29","elapsed":0.025963333,"rows":1,"sql":"SELECT * FROM \"users\" WHERE email='crackers.biscuits@gmail.com'"}
{"level":"info","ts":"2026-08-16T17:36:57.127+0700","caller":"database/redis.go:34","msg":"Parse config slave"}
{"level":"info","ts":"2026-08-16T17:36:57.129+0700","caller":"database/redis.go:49","msg":"Connecting to Redis slave"}
{"level":"info","ts":"2026-08-16T17:36:57.409+0700","caller":"database/redis.go:62","msg":"Connected"}
{"level":"info","ts":"2026-08-16T17:36:57.409+0700","caller":"database/redis.go:34","msg":"Parse config master"}
{"level":"info","ts":"2026-08-16T17:36:57.409+0700","caller":"database/redis.go:49","msg":"Connecting to Redis master"}
{"level":"info","ts":"2026-08-16T17:36:57.677+0700","caller":"database/redis.go:62","msg":"Connected"}