go-pingbot/nodemon.sh
Medzik 689e833dbb feat: add ctx to backend ping, add cluster functional...
- Added ctx to backend ping
- Log changed Stderr to Stdout
- Added cluster functional
- Updated more files
2021-07-31 20:59:43 +00:00

18 lines
326 B
Bash
Executable file

#!/usr/bin/env bash
# Colors
red="\e[0;91m"
reset="\e[0m"
if ! go build -o pingbot.out; then
echo -e "${reset}[${red}COMPILE ERROR${reset}]"
exit 1
else
if ! ./pingbot.out; then
echo -e "${reset}[${red}PROGRAM PANIC${reset}]"
exit 1
else
echo -e "${reset}[${red}PROGRAM END${reset}]"
fi
fi