This application "pings" websites every few minutes. It can be used to keep the application alive on e.g. glitch.me or repl.it.
Go to file
Medzik 6e9a5805d6 feat(opts): add --no-update, move main.go => cmd/pingbot/main.go 2021-11-13 12:31:50 +00:00
.github/workflows Create codeql-analysis.yml 2021-10-22 23:09:19 +02:00
cmd/pingbot feat(opts): add --no-update, move main.go => cmd/pingbot/main.go 2021-11-13 12:31:50 +00:00
config update 2021-11-10 13:38:54 +00:00
database/mongo update 2021-11-10 13:38:54 +00:00
ping update 2021-11-10 13:38:54 +00:00
website update 2021-11-10 13:38:54 +00:00
.gitignore update 2021-11-10 13:38:54 +00:00
.gitpod.yml Gitpod change workspace image 2021-10-19 22:43:43 +02:00
.goreleaser.yml feat(opts): add --no-update, move main.go => cmd/pingbot/main.go 2021-11-13 12:31:50 +00:00
.pre-commit-config.yaml update 2021-11-10 13:38:54 +00:00
Dockerfile feat(opts): add --no-update, move main.go => cmd/pingbot/main.go 2021-11-13 12:31:50 +00:00
LICENSE v1.3.0 2021-07-24 09:50:17 +00:00
Makefile feat(opts): add --no-update, move main.go => cmd/pingbot/main.go 2021-11-13 12:31:50 +00:00
README.md update 2021-11-10 13:38:54 +00:00
config.schema.toml perf(config): remove mongodb db and collection from .env 2021-09-08 20:16:02 +00:00
go.mod chore(deps): upgrade 2021-11-13 11:57:37 +00:00
go.sum feat(opts): add --no-update, move main.go => cmd/pingbot/main.go 2021-11-13 12:31:50 +00:00
nodemon.json update few files 2021-09-07 20:45:10 +00:00
nodemon.sh update 2021-09-01 12:49:56 +00:00
pre-commit.sh fix: delete cluster option (not used in latest config) 2021-09-09 18:55:36 +00:00
renovate.json update 2021-08-28 13:03:07 +02:00
schema.env chore: rename `backend` to `ping` 2021-09-08 20:18:35 +00:00
start.sh update few files 2021-09-07 20:45:10 +00:00

README.md

Pingbot - Backend

Repo Size Build

This application "pings" websites every few minutes (to be set in config). It can be used to keep the application alive on e.g. glitch.me or repl.it.

Install Pre-Compile binary

  • 💻 Linux amd64
    • Download latest version
    • Unpack file tar xf pingbot_*_linux_amd64.tar.xz
    • Done your binary is pingbot.out

👨‍💻 Compile from Source Code

‼️ Not recommended because automatic updates don't work

🖥️ Requirements

  • Go (recommended latest version)

Compile

Method 2:

  • go install github.com/medzikuser/go-pingbot@latest
  • Output binary path
    • Check GOPATH go env GOPATH
    • Go to GOPATH and binary name is pingbot

Method 2:

  • Download source code git clone https://github.com/medzikuser/go-pingbot.git --depth 1
  • Go to folder with source code cd go-pingbot
  • Build make or go build -o pingbot.out
  • Done your compiled binary name is pingbot.out

Cross Compile

Check supported OS and ARCH

  • Download source code git clone https://github.com/medzikuser/go-pingbot.git --depth 1
  • Go to folder with source code cd go-pingbot
  • Build make GOOS=os GOARCH=arch
    • e.g. make GOOS=openbsd GOARCH=arm64
  • Done your cross compiled binary name is pingbot.out

⚙️ Configurate

  • Complete .env according to schema.env
  • And fill in config.toml according to config.schema.toml

🔧 Run

  • ./pingbot.out or ./start.sh (auto restart e.g. if exit on update is enabled)