Your ROOT_URL in app.ini is http://git.slaventius.ru/ but you are visiting http://37.143.12.169/test3k/authPostman/commit/d75e1d7fb2823d45b1a934abaa1fbb5c59917840?style=split&whitespace=ignore-change
You should set ROOT_URL correctly, otherwise the web may not work correctly.
4 changed files with
93 additions and
82 deletions
.vscode/extensions.json
.vscode/launch.json
.vscode/tasks.json
@ -1,5 +1,3 @@
{
{
"recommendations" : [
"recommendations" : [ "johnpapa.vscode-peacock" ]
"johnpapa.vscode-peacock"
]
}
}
@ -20,7 +20,7 @@
"KAFKA_HOST" : "37.143.12.169" ,
"KAFKA_HOST" : "37.143.12.169" ,
"CHAT_ID" : "150697696" ,
"CHAT_ID" : "150697696" ,
"CHAT_TOKEN" : "5960577375:AAEZYPZV4-ErxQbX6yP084pIzCB0BPxN7ig" ,
"CHAT_TOKEN" : "5960577375:AAEZYPZV4-ErxQbX6yP084pIzCB0BPxN7ig" ,
"SENTRY_DSN" : "https://3f4b31dbbd9a4a6b8a71f9881d962f25@o4504654569799680.ingest.sentry.io/4504654572683264" ,
"SENTRY_DSN" : "https://3f4b31dbbd9a4a6b8a71f9881d962f25@o4504654569799680.ingest.sentry.io/4504654572683264"
} ,
} ,
"args" : [ ]
"args" : [ ]
}
}
@ -1,10 +1,8 @@
{
{
/ / S e e h t t p s : / / g o . m i c r o s o f t . c o m / f w l i n k / ? L i n k I d = 733558
/ / f o r t h e d o c u m e n t a t i o n a b o u t t h e t a s k s . j s o n f o r m a t
"version" : "2.0.0" ,
"version" : "2.0.0" ,
"tasks" : [
"tasks" : [
{
{
"label" : "build linux " ,
"label" : "build" ,
"type" : "shell" ,
"type" : "shell" ,
"group" : {
"group" : {
"kind" : "build" ,
"kind" : "build" ,
@ -17,22 +15,22 @@
"options" : {
"options" : {
"cwd" : "${workspaceRoot}" ,
"cwd" : "${workspaceRoot}" ,
"env" : {
"env" : {
"APP" : "pakitara " ,
"APP" : "authPostmanService " ,
"GOOS" : "linux" ,
"GOOS" : "linux" ,
"GOARCH" : "amd64" ,
"GOARCH" : "amd64" ,
"GOBIN" : "${env:GOPATH}/bin"
"GOBIN" : "${env:GOPATH}/bin"
} ,
} ,
"args" : [
"args" : [ "ldflags '-s -w'" ]
"ldflags '-s -w'"
]
} ,
} ,
"command" : "go build -o $GOBIN/$APP-$GOOS-$GOARCH -ldflags \"-s -w\" $APP .go" ,
"command" : "go build -o $GOBIN/$APP-$GOOS-$GOARCH -ldflags \"-s -w\" ./cmd/main.go" ,
"problemMatcher" : [ ]
"problemMatcher" : [ ]
} ,
} ,
{
{
"label" : "build windows " ,
"label" : "docker- build" ,
"type" : "shell" ,
"type" : "shell" ,
"group" : "build" ,
"group" : {
"kind" : "build"
} ,
"presentation" : {
"presentation" : {
"echo" : true ,
"echo" : true ,
"panel" : "new"
"panel" : "new"
@ -40,16 +38,31 @@
"options" : {
"options" : {
"cwd" : "${workspaceRoot}" ,
"cwd" : "${workspaceRoot}" ,
"env" : {
"env" : {
"APP" : "pakitara" ,
"TAG" : "slaventius/test3k_auth_postman:latest"
"GOOS" : "windows" ,
"GOARCH" : "amd64" ,
"GOBIN" : "${env:GOPATH}/bin"
} ,
} ,
"args" : [
"args" : [ "--no-cache" , "--tag $TAG" ]
"ldflags '-s -w'"
} ,
]
"command" : "sudo docker build --no-cache --tag $TAG ./build/" ,
"problemMatcher" : [ ]
} ,
{
"label" : "docker-push" ,
"type" : "shell" ,
"group" : {
"kind" : "build"
} ,
"presentation" : {
"echo" : true ,
"panel" : "new"
} ,
} ,
"command" : "go build -o $GOBIN\\$APP-$GOOS-$GOARCH.exe -ldflags \"-s -w\" $APP.go"
"options" : {
"cwd" : "${workspaceRoot}" ,
"env" : {
"TAG" : "slaventius/test3k_auth_postman:latest"
}
} ,
"command" : "sudo docker push $TAG" ,
"problemMatcher" : [ ]
}
}
]
]
}
}