mirror of
https://github.com/MedzikUser/go-pingbot
synced 2024-08-14 23:57:07 +00:00
Update
This commit is contained in:
parent
8ba0bb4f9e
commit
dd0d47d166
4 changed files with 5 additions and 7 deletions
7
.gitignore
vendored
7
.gitignore
vendored
|
@ -2,16 +2,13 @@
|
|||
.env
|
||||
.cache
|
||||
|
||||
# Binaries for programs and plugins
|
||||
# Binaries
|
||||
*.exe
|
||||
*.exe~
|
||||
*.dll
|
||||
*.so
|
||||
*.dylib
|
||||
*.out
|
||||
dist/
|
||||
|
||||
# Test binary, built with `go test -c`
|
||||
*.test
|
||||
|
||||
# Configs
|
||||
config.toml
|
||||
|
|
2
.gitpod.Dockerfile
vendored
2
.gitpod.Dockerfile
vendored
|
@ -3,5 +3,7 @@ FROM gitpod/workspace-full
|
|||
# GoReleaser
|
||||
RUN curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sh
|
||||
|
||||
RUN sudo mv bin/* /usr/bin/
|
||||
|
||||
RUN yarn global add nodemon
|
||||
RUN echo "export PATH=\$PATH:`yarn global bin`" >> ~/.bashrc
|
||||
|
|
|
@ -59,8 +59,7 @@ func Status(c *gin.Context) {
|
|||
"node": json{
|
||||
"cluster": config.Toml.Cluster.ID,
|
||||
"node": config.Toml.Cluster.Node,
|
||||
//"uptime": time.Since(config.StartTime).String(),
|
||||
"uptime": uptime(),
|
||||
"uptime": uptime(),
|
||||
},
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue