From dd0d47d16646d165fcc687d8dbc5eb8bd8d6480e Mon Sep 17 00:00:00 2001 From: Medzik <87065584+MedzikUser@users.noreply.github.com> Date: Thu, 12 Aug 2021 19:39:05 +0000 Subject: [PATCH] Update --- .github/workflows/{pull.yml => pull_request.yml} | 0 .gitignore | 7 ++----- .gitpod.Dockerfile | 2 ++ website/routes/api/status.go | 3 +-- 4 files changed, 5 insertions(+), 7 deletions(-) rename .github/workflows/{pull.yml => pull_request.yml} (100%) diff --git a/.github/workflows/pull.yml b/.github/workflows/pull_request.yml similarity index 100% rename from .github/workflows/pull.yml rename to .github/workflows/pull_request.yml diff --git a/.gitignore b/.gitignore index e5551dc..3bdcf88 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/.gitpod.Dockerfile b/.gitpod.Dockerfile index 72ecc1a..a72794f 100644 --- a/.gitpod.Dockerfile +++ b/.gitpod.Dockerfile @@ -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 diff --git a/website/routes/api/status.go b/website/routes/api/status.go index cf46763..9fe3dfb 100644 --- a/website/routes/api/status.go +++ b/website/routes/api/status.go @@ -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(), }, }) }