mirror of https://github.com/MedzikUser/go-pingbot
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
4 weeks ago | |
---|---|---|
.github/workflows | 2 months ago | |
cmd/pingbot | 9 months ago | |
config | 9 months ago | |
database/mongo | 9 months ago | |
ping | 9 months ago | |
website | 9 months ago | |
.air.toml | 9 months ago | |
.gitignore | 9 months ago | |
.gitpod.yml | 10 months ago | |
.goreleaser.yml | 9 months ago | |
.pre-commit-config.yaml | 9 months ago | |
Dockerfile | 9 months ago | |
LICENSE | 1 year ago | |
Makefile | 9 months ago | |
README.md | 2 months ago | |
config.schema.toml | 11 months ago | |
go.mod | 4 weeks ago | |
go.sum | 4 weeks ago | |
renovate.json | 1 month ago | |
schema.env | 11 months ago | |
start.sh | 9 months ago |
README.md
Pingbot - Backend
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 1:
go install github.com/medzikuser/go-pingbot@latest
- Output binary path
- Check GOPATH
go env GOPATH
- Go to GOPATH and binary name is
pingbot
- Check GOPATH
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
orgo build -o pingbot.out
- Done your compiled binary name is
pingbot.out
⭐ Cross Compile
- 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
- e.g.
- 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)