wrong repo in Dockerfile, remove some debug
This commit is contained in:
parent
6381e9e35d
commit
4f82bb71ab
@ -7,7 +7,7 @@ WORKDIR /app
|
||||
|
||||
ARG COMMIT=latest
|
||||
|
||||
RUN GOBIN=/app go install github.com/shoopea/shelly-proxy@$COMMIT
|
||||
RUN GOBIN=/app go install git.siteop.biz/shoopea/shelly-proxy@$COMMIT
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
|
3
proxy.go
3
proxy.go
@ -133,7 +133,6 @@ func main() {
|
||||
}
|
||||
|
||||
func (s *ShellyStatus) Fetch() {
|
||||
log.Printf("Fetching")
|
||||
resp, err := http.Get(fmt.Sprintf("http://%d:%d/status", shellyHost, *shellyPort))
|
||||
if err != nil {
|
||||
log.Fatalf("ShellyStatus.Fetch : http.Get (%s)", err)
|
||||
@ -147,8 +146,6 @@ func (s *ShellyStatus) Fetch() {
|
||||
if err = json.Unmarshal(body, s); err != nil {
|
||||
log.Fatalf("ShellyStatus.Fetch : json.Unmarshal (%s)", err)
|
||||
}
|
||||
|
||||
log.Printf("Fetched")
|
||||
}
|
||||
|
||||
func GetMetrics(c *gin.Context) {
|
||||
|
Loading…
Reference in New Issue
Block a user