Your ROOT_URL in app.ini is http://git.slaventius.ru/ but you are visiting http://37.143.12.169/test3k/auth/commit/99262dc896a39df34224330b8462b276b809209b?style=split&whitespace=ignore-change
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
91 additions and
80 deletions
.vscode/extensions.json
.vscode/tasks.json
@ -1,5 +1,3 @@
{
{
"recommendations" : [
"recommendations" : [ "johnpapa.vscode-peacock" ]
"johnpapa.vscode-peacock"
]
}
}
@ -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" : "authService " ,
"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: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:latest"
}
} ,
"command" : "sudo docker push $TAG" ,
"problemMatcher" : [ ]
}
}
]
]
}
}