Compare commits

...

6 Commits

Author SHA1 Message Date
Stepan Vladovskiy
5758fe1e2c feat: Dockerfile with big ASSSsssss
All checks were successful
deploy / deploy (push) Successful in 36s
2025-05-14 15:35:07 -03:00
Stepan Vladovskiy
9c27d7fcab restart branch
All checks were successful
deploy / deploy (push) Successful in 36s
2025-05-14 15:28:50 -03:00
Stepan Vladovskiy
282c700431 restart branch 2025-05-14 15:27:33 -03:00
acc471e500 log-error-more
All checks were successful
deploy / deploy (push) Successful in 7s
2024-12-11 22:40:26 +03:00
586b2cc3af deploy
All checks were successful
deploy / deploy (push) Successful in 1m44s
2024-06-06 09:46:38 +03:00
6a4b3553af premerge 2024-06-06 09:44:19 +03:00
4 changed files with 5 additions and 3 deletions

View File

@ -33,3 +33,4 @@ jobs:
branch: "main"
git_remote_url: "ssh://dokku@v2.discours.io:22/authorizer"
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
git_push_flags: '--force'

View File

@ -1,4 +1,4 @@
FROM golang:1.21.3-alpine3.18 as go-builder
FROM golang:1.21.3-alpine3.18 AS go-builder
WORKDIR /authorizer
COPY server server
COPY Makefile .
@ -11,7 +11,7 @@ RUN apk add build-base &&\
make clean && make && \
chmod 777 build/server
FROM node:20-alpine3.18 as node-builder
FROM node:20-alpine3.18 AS node-builder
WORKDIR /authorizer
COPY app app
COPY dashboard dashboard

View File

@ -35,6 +35,7 @@ func (u LogTextFormatter) Format(e *logrus.Entry) ([]byte, error) {
}
if e.Caller != nil {
fmt.Sprintf("%r", e)
file := filepath.Base(e.Caller.File)
line := e.Caller.Line
return []byte(fmt.Sprintf("%s[%s] %s:%d %s%s\033[0m\n", color, level, file, line, message, color)), nil

View File

@ -234,10 +234,10 @@ func (c *provider) GetUserAppDataFromRedis(userId string) (string, error) {
rkey := fmt.Sprintf("author:user:%s", userId)
fmt.Println("get redis cached by key:", rkey)
authorIdString, err := c.store.Get(c.ctx, rkey).Result()
fmt.Println("redis found string value:", authorIdString)
if err != nil {
return "", err
}
fmt.Println("redis found string value:", authorIdString)
// Преобразуем ID автора из строки в int
var authorIdFloat float64