Your ROOT_URL in app.ini is http://git.slaventius.ru/ but you are visiting http://37.143.12.169/test3k/authPostman/blame/commit/902161fd20640ccc78e591d5516eb2dce3c8b969/.vscode/tasks.json You should set ROOT_URL correctly, otherwise the web may not work correctly.

71 lines
1.6 KiB

3 years ago
{
2 years ago
"version": "2.0.0",
"tasks": [
{
"label": "build",
"type": "shell",
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"echo": true,
"panel": "new"
},
"options": {
"cwd": "${workspaceRoot}",
"env": {
"APP": "authPostmanService",
2 years ago
// "GOOS": "${env:GOOS}",
// "GOARCH": "${env:GOARCH}",
2 years ago
"GOOS": "linux",
"GOARCH": "amd64",
"GOBIN": "${env:GOPATH}/bin"
3 years ago
},
2 years ago
"args": ["ldflags '-s -w'"]
},
"command": "go build -o $GOBIN/$APP-$GOOS-$GOARCH -ldflags \"-s -w\" ./cmd/main.go",
"problemMatcher": []
},
{
"label": "docker-build",
"type": "shell",
"group": {
"kind": "build"
},
"presentation": {
"echo": true,
"panel": "new"
},
"options": {
"cwd": "${workspaceRoot}",
"env": {
"TAG": "slaventius/test3k_auth_postman:latest"
},
"args": ["--no-cache", "--tag $TAG"]
},
"command": "sudo docker build --no-cache --tag $TAG ./build/",
"problemMatcher": []
},
{
"label": "docker-push",
"type": "shell",
"group": {
"kind": "build"
},
"presentation": {
"echo": true,
"panel": "new"
},
"options": {
"cwd": "${workspaceRoot}",
"env": {
"TAG": "slaventius/test3k_auth_postman:latest"
3 years ago
}
2 years ago
},
"command": "sudo docker push $TAG",
"problemMatcher": []
}
]
}